how do i verify
Main Topics
Browse All TopicsHaving an issue with authenticating via LDAP.
Apache 2 running on windows 2008 x64
Here is my apache config
<Location /svn>
DAV svn
SVNParentPath E:/svn
SVNListParentPath On
AuthzLDAPAuthoritative off
AuthType Basic
AuthzSVNAccessFile e:/svnaccess.txt
AuthBasicProvider ldap
AuthName "secret.net"
AuthLDAPBindDN "CN=ldapsub,OU=Users,DC=do
AuthLDAPBindPassword "thepassword"
AuthLDAPURL "ldap://dc4:389/DC=domain1
Require valid-user
</Location>
Log shows this
[Mon Nov 02 09:29:07 2009] [warn] [client 10.1.40.9] [2700] auth_ldap authenticate: user tester2 authentication failed; URI /svn [LDAP: ldap_simple_bind_s() failed][Invalid Credentials]
[Mon Nov 02 09:29:07 2009] [error] [client 10.1.40.9] user tester2: authentication failure for "/svn": Password Mismatch
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Get an ldap client for whatever OS you have and test. What OS are you using?
If you are using Windows you can get http://download.cnet.com/L
One thing I just noticed is that you do not have a user-id in the AuthLDAPBind string but you do have a AuthLDAPBindPassword specified. If you are specifying a password, you need to specify the user-id you have to bind to the LDAP server with. This sort of matches the error you are getting, which states you are attempting to connect to the LDAP server with a invalid user-id or password.
I have never seen the "NONE" before. The URL workss just like the http and https does for web servers.
The "ldap://" implies port 389 which is the port that is typically used for non-SSL connections.
The "ldaps://" implies port 636 which is typically the SSL ldap port.
If you read:
http://httpd.apache.org/do
You can see that specifing "NONE" is the same as using ldap:// or ldap:389/ and that "SSL" is the same as ldaps:// or ldap:636.
The only odd-ball is if you are using TLS.
I have no clue why using just AuthLDAPBindDN "ldapsub" worked, it should not.
What I meant was to use the ldap browser and use tester2 instead of ldapsub as the user-id, and use the appropriate password for tester2 also.
If Apache is running under Windows look at the file c:\windows\system32\driver
If you are running under *nix look at /etc/servers. It is poosible that somebody could have updated the services file so that the service ldap is set to 636 instead of 398.
Because somebody updated your services file to say that when somebody asks to do protocols ldap use port 636, you need to use port 386. So you need to update the services file so that ldap is defined as 389 (the normal default).
Think of the services file as a phone list and ldap as the name of the person you want to call. You look up the "name" ldap in the phone list, it says to dial phone number 636. The problem is their phone number is not 636 it is 389. So you need to update the phone list with the correct number.
Business Accounts
Answer for Membership
by: giltjrPosted on 2009-11-04 at 05:07:56ID: 25738872
Can you successfully connect to the LDAP server using the DN information you have above?