Hello,
Don't know if it will be applicable to your situation but I have a Mercurial site set up to accept connections without authentication if coming from the same host and with LDAP authentication for everyone else. The connections without authentication are used for Hudson which is installed on the same server, so that it can run its builds without problems. Anybody else (developers) connecting to Mercurial need to provide their LDAP credentials. This is what I have in /etc/httpd/conf.d/mercurial.conf:
Code:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin xxx@xxxxx.es
ScriptAlias /code /var/www/cgi-bin/hg.cgi
<Directory /var/www/cgi-bin>
AuthType Basic
AuthName "CDN Team Rocks, please provide your username/password combination."
Order allow,deny
Allow from ci-cdn64new
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL ldap://xxxxxxxx.xx.xxxx:389/o=TID?uid?sub?
require valid-user
Satisfy any
</Directory>
</VirtualHost>
and it works perfectly. Hope it helps you out or at least gives you an idea.
Kind regards,
Eric