Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Query Active Directory using mod_ldap? |
|
Author |
|
wmueller
Joined: 17 Jan 2007 Posts: 2
|
Posted: Thu 18 Jan '07 10:30 Post subject: Query Active Directory using mod_ldap? |
|
|
Hallo
I'am stuck having a probably stupid problem. And now I hope for a miracle
i try to authenticate users at an active directory using mo_ldap (apache 2.0.x).
using apache2 on windows works with this configuration:
Code: |
<Directory "c:/wwwroot/ldap/">
AuthLDAPAuthoritative on
AuthType Basic
AuthName "ldap testing"
AuthLDAPBindDN cn=LdapAdminUserName,cn=Users,dc=domain,dc=local
AuthLDAPBindPassword "secretpwd"
AuthLDAPURL "ldap://192.168.1.20:389/OU=USER,OU=COMPANY,dc=domain,dc=local?sAMAccountName?sub?(objectClass=*)"
require valid-user
</Directory>
|
but this is supposed to work on a linux installation. and hell it does not! i get an error.log entry like:
Quote: | auth_ldap authenticate: user testuser authentication failed; URI /ldap/ [User not found][No such object] |
when i change the ldapurl to:
Code: | AuthLDAPURL "ldap://192.168.1.20:389/cn=Users,dc=domain,dc=local?sAMAccountName?sub?(objectClass=*)" |
at least the 'LdapAdminUserName' can authenticate. this drives me crazy. Using ldapsearch to query 'ou=user,ou=company' does return results. linux tests are run using kubuntu linux 6.0x
so. what did i miss??? any hint is welcome! |
|
Back to top |
|
|
|
|
|
|