logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Query Active Directory using mod_ldap?
Author
wmueller



Joined: 17 Jan 2007
Posts: 2

PostPosted: Thu 18 Jan '07 10:30    Post subject: Query Active Directory using mod_ldap? Reply with quote

Hallo

I'am stuck having a probably stupid problem. And now I hope for a miracle Wink

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


Reply to topic   Topic: Query Active Directory using mod_ldap? View previous topic :: View next topic
Post new topic   Forum Index -> Apache