Link to home
Start Free TrialLog in
Avatar of CSIA AN
CSIA ANFlag for Andorra

asked on

access apache via ldap and local password

I'm trying to setup apache to be accessed to users on a windows ldap server and local users on the unix host. I have configured a /localtion combining LDAP and local authentication, but it does not work. Only LDAP user can access the /location. Local user fails:

[Wed Aug 19 18:24:10 2015] [error] [client 192.168.174.31] user localuser not found: /svnweb

Open in new window


Here is the /localtion configuration:

# Repositorio SVNWEB
    <Location /svnweb>
      Dav svn
      SVNPath /REPOS/SVNWEB/SVNWEB/
      AuthType Basic
      AuthBasicProvider ldap
      AuthzLDAPAuthoritative on
      AuthLDAPBindDN "userldap_bind@domain"
      AuthLDAPBindPassword "password"
      AuthLDAPURL "ldap://domain.net:3268/?sAMAccountName?sub?"
      Require ldap-user user_domain_ldap
      AuthName "SVN -- SVNWEB"
      AuthUserFile "/opt/freeware/etc/httpd/conf/passwords_SVN/file_passwd_local_users"
      require valid-user
      Allow from 172.1.1.1
      </Location>

Open in new window


Is possible to setup a /localtion on apache for LDAP and local password file authentication?

Is there another way to have both types of authentication?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CSIA AN

ASKER

Hi,

I see you have twice 'AuthUserFile'

 AuthUserFile /<path>/passwd
 AuthUserFile "/opt/freeware/etc/httpd/conf/passwords_SVN/file_passwd_local_users"

Open in new window


Is it ok?
Avatar of CSIA AN

ASKER

Pefect!
Thanks
Great :-)