Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auth_ldap & .htusers

Status
Not open for further replies.

Crundy

Programmer
Jul 20, 2001
305
GB
Hello,
I am authenticating a group of users using auth_ldap thus:

AuthName "Protected files"
AuthType Basic
AuthLDAPURL ldap://ldapserver
require user username1 username2

Which works fine. But I need to add someone who does not have their username in the ldap server. I tried creating a .htusers passwd file with them in it and adding an AuthUserFile directive:

AuthName "Protected files"
AuthType Basic
AuthUserFile /webroot/dir/.htusers
AuthLDAPURL ldap://ldapserver
require user username1 username2 newuser

.htusers:
newuser:hashedpasswd

But this didn't work (the ldap configured users still worked, but not 'newuser')

Can anyone help?

P.S. I'm using the above config in a .htaccess file, not the httpd.conf C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top