Friday, January 28, 2011

apache auth: combination of LDAP and htpasswd

We're using Apache with mod_svn to serve the subversion repo. Apache is hooked to an LDAP server so all users can use their domain passwords. For the build machine to be able to checkout, I want to have an extra user, but I can't add via LDAP.

Can I create a setup where the user/pwd has to match either the LDAP server or an htpasswd file?

  • hi,

    try this:

    AuthType Basic
    AuthName "LDAP and file
    AuthBasicProvider file ldap
    AuthUserFile /path/to/htpassword/file
    AuthLDAPBindDN <your bind dn>
    AuthLDAPBindPassword <your password>
    AuthLDAPURL "<your ldap url>"
    AuthzLDAPAuthoritative off
    Require valid-user
    

    Perhaps you switch AuthBasicProvider file ldap to AuthBasicProvider ldap file, depending on where you want to search first.

    noamtm : Thanks, I'll try this.
    From Christian
  • Hi,

    currently experience occasional subversion client proxy error(timeout) by setting the authentication search to follow "AuthBasicProvider file ldap". Can advise whether there's any setup that we can verify to rectify this problem?

    thks

    regards

    From kwpoon

0 comments:

Post a Comment