LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   http.conf LDAP authentication (https://www.linuxquestions.org/questions/linux-security-4/http-conf-ldap-authentication-4175588866/)

moonsun1124 09-06-2016 01:16 PM

http.conf LDAP authentication
 
Hi All, I am new to LDAP. I am trying to set LDAP authentication for web applications (CGI Script).

Order deny,allow
Deny from All
AuthType Basic
AuthName "Security"
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL ldap://ldap-corporate/o=homedepot.com,c=US?uid?sub
AuthLDAPBindDN "cn=SC HelpDesk,o=homedepot.com"
AuthLDAPBindPassword secret1
AuthLDAPGroupAttribute uniquemember
AuthLDAPGroupAttributeIsDN off
Require ldap-group cn=SC HelpDesk,o=homedepot.com,c=US
Satisfy any

After adding the above code. Authentication page is coming when I give the credentials it is giving error saying "LDAP id is not found".

Please help me.

Thanks,
Chaitaya

mpapet 09-07-2016 11:38 PM

ldapsearch is your new friend. Learn it. Get ldapsearch to work and then apache auth should be easy.

**Require ldap-group cn=SC HelpDesk,o=homedepot.com,c=US**

Is that really a group? Because above that you are using it as a search login.

Are you logging requests?


All times are GMT -5. The time now is 01:40 AM.