[Deploying Sakai] [Building Sakai] LDAP connection question

caseyd.stan caseyd.stan at gmail.com
Thu Dec 9 16:55:40 PST 2010


On 12/9/10 12:55 PM, bruceballou at olk12.com wrote:
> Hello Steve,

jumping in, inline comments below


> We have edited the files as you suggested, and the compile works
> successful, I can see the LDAP server (from the sakai server):
>
> [root at sakai-LDAP-test]#  ldapsearch -x -D
> 'uid=bruce,ou=People,dc=olk12,dc=
> net' -W -H ldap://192.168.1.9 -b ou=People,dc=olk12,dc=net uid=bruce
> Enter LDAP Password:
>
[snip]
> So, it appears to be working...
>
you can connect from the command line and authenticate as yourself
to your LDAP server. yep!

you are authenticating as yourself.



>
> Now I go to log into sakai as bruce   password  and we see this in the
> catalina.out file:
>
>
> 2010-12-09 12:47:10,383 DEBUG http-80-Processor24
> edu.amc.sakai.user.JLDAPDirectoryProvider - searchDirectory(): [filter =
> cn=bruce][reusing conn = false]
> 2010-12-09 12:47:10,392 ERROR http-80-Processor24
> edu.amc.sakai.user.JLDAPDirectoryProvider - getUser() failed [eid:
> bruce]
> LDAPException: Invalid Credentials (49) Invalid Credentials
> LDAPException: Matched DN:
>          at com.novell.ldap.LDAPResponse.getResultException(Unknown
> Source)
>          at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source)
>          at com.novell.ldap.LDAPConnection.chkResultCode(Unknown Source)
>          at com.novell.ldap.LDAPConnection.bind(Unknown Source)
>          at com.novell.ldap.LDAPConnection.bind(Unknown Source)
>          at
> edu.amc.sakai.user.SimpleLdapConnectionManager.bind(SimpleLdapConnectionManager.java:123)
>          at
> edu.amc.sakai.user.SimpleLdapConnectionManager.getConnection(SimpleLdapConnectionManager.java:92)
>          at
> edu.amc.sakai.user.JLDAPDirectoryProvider.searchDirectory(JLDAPDirectoryProvider.java:899)
>          at
> edu.amc.sakai.user.JLDAPDirectoryProvider.searchDirectoryForSingleEntry(JLDAPDirectoryProvider.java:847)
>          at
> edu.amc.sakai.user.JLDAPDirectoryProvider.getUserByEid(JLDAPDirectoryProvider.java:769)
>          at
> edu.amc.sakai.user.JLDAPDirectoryProvider.getUserByEid(JLDAPDirectoryProvider.java:723)
>
>
> It appears to be looking in wrong places, but I am nothing but a
> green-newbie...
>
Sakai is failing to log into the LDAP server.


> Any help is greatly appreciated.
>
>
> Thanx,
>
> Bruce Ballou
>
> sakai support
>
>
>
> -------- Original Message --------
> Subject: Re: [Deploying Sakai] LDAP connection question
> From: Steve Swinsburg<steve.swinsburg at gmail.com>
> Date: Wed, December 08, 2010 5:59 pm
> To:<bruceballou at olk12.com>  <bruceballou at olk12.com>
> Cc: support at olk12.com, "sakai"<production at collab.sakaiproject.org>,
> "sakai-dev Developers (sakai-dev at collab.sakaiproject.org)"
> <sakai-dev at collab.sakaiproject.org>, "Naim_-_نعيم"
> <naimsyed at hotmail.com>, "Abdul khader"<akhader at gmail.com>
>
> Hi Bruce,
>
> I assume you've configured the jldap-beans.xml with the correct settings
> for your LDAP instance, and followed the rest of the LDAP guide to build
> it all?
>
> If so, you could post your settings, but change them for privacy.
>


 >>>>> BRUCE this is an important point,


> Do you need an authenticated bind to LDAP or anonymous?
>
> cheers,
> Steve
>

<<<<< which you will have to answer for yourselves.

how have you configured your LDAP server?




More information about the production mailing list