RE: .htaccess - local and LDAP authentication on Apache 2.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris,

> -----Original Message-----
> From: Chris Henderson [mailto:henders254@xxxxxxxxx] 
> Sent: Tuesday, August 05, 2008 2:06 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject:  .htaccess - local and LDAP 
> authentication on Apache 2.x
> 
> I need to create a local user for apache authentication. 
> That's on top of the .htaccess authentication that is already 
> done via LDAP.
> 
> I have created a .htpasswd file but in error_log I can see 
> it's trying LDAP
> lookup:  [mod_auth_ldap.c (815) ] - no user found for: joe
> 
> I tried adding the location of .htpasswd in .htaccess file 
> but that overwrites the LDAP authentication.
> 
> Here is my .htaccess file
> 
> AuthName "Restricted"
> AuthType Basic
> 
> LDAP_Server active.directory.company.com LDAP_Port 368 
> Base_DN "ou=district,dc=users,dc=company,dc=com"
> UID_Attr samaccountname
> require valid-user
> AuthUserFile /path/to/.htpasswd
> 
> I was wondering it this is possible. If yes, how?

Please add the directive "AuthAuthoritative Off" to your .htaccess file.
Please refer to the Apache Server documentation:
http://httpd.apache.org/docs/2.0/mod/mod_auth.html#authauthoritative

> 
> Thanks for any help.

Your are welcome.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux