Hi,
I've been pulling my hair out over this for a few days now, i'm trying to get apache to authorize a user based on their AD credentials. I've got mod_auth_ldap install and working as far as I can tell I just can't seem to get the .htaccess file working.
My current code is:When visit the protected page I get the login prompt but get no further. I've tried a mix of things i've found online and have managed to generate every error message under the sun. I've also tried various logins ranging from DOMAIN\Username to Username@domain but to no avail.Code:Order deny,allow Deny from All AuthName "Intranet" AuthType Basic AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPBindDN "cn=LDAPUser,cn=Users,dc=internal,dc=distortedlogic,dc=net" AuthLDAPBindPassword PASSWORD AuthLDAPURL ldap://localhost:389/dc=internal,dc=distortedlogic,dc=net?sAMAccountName?sub?(objectClass=*) Require valid-user Satisfy any
Incase it helps, my users are stored in the Users container under the root of the domain.
I'm sure that LDAP is working properly because i'm able to get PHP to authenticate against it perfectly fine.
Any help would be greatly appreciated.
Regards



LinkBack URL
About LinkBacks
Reply With Quote






