[Building Sakai] Sakai 2.6.3 to authenticate with LDAP server

Abdul khader akhader at gmail.com
Thu Dec 9 01:42:29 PST 2010


Dear All,
I have sakai 2.6.3. I would like to authenticate user's using Openldap
server.
I have followed the follow URL to configure sakai.
http://confluence.sakaiproject.org/display/~steve.swinsburg/LDAP+in+Sakai+2.5

My sakai config is as follows with reference to the
http://confluence.sakaiproject.org/display/~steve.swinsburg/LDAP+in+Sakai+2.5

My Ldap server details are as below
==========================
database        bdb
suffix          "dc=test,dc=com"
rootdn          "cn=admin,dc=test,dc=com"

>From the sakai server, I am able to authenticate and get user details with
the following command at the linux shell.

ldapsearch -x -D 'uid=root,ou=People,dc=test,dc=com' -W -H ldap://
ldap.test.com -b ou=People,dc=test,dc=com uid=root



My Sakai configuration details as below
=============================

SAKAI-SRC/providers/component/pom.xml

<!-- Needed for the JLDAP Provider -->
          	<dependency>

                        <groupId>org.sakaiproject</groupId>
                        <artifactId>sakai-jldap-provider</artifactId>
                        <version>2.6.3</version>

                </dependency>

                <dependency>
                        <groupId>openldap</groupId>
                        <artifactId>ldap</artifactId>
                        <version>2005.03.29</version>

                </dependency>
<!--    -->

SAKAI-SRC/providers/component/src/webapp/WEB-INF/components.xml

 <import resource="jldap-beans.xml" />


SAKAI-SRC/providers/component/src/webapp/WEB-INF/jldap-beans.xml

<property name="ldapHost">
	<value>ldap.test.com</value>

</property>


<property name="basePath">
	<value>ou=People,dc=test,dc=com</value>
</property>


<property name="ldapUser">

	<value>cn=admin,ou=People,dc=com,dc=com</value>
</property>


<property name="ldapPassword">
	<value>test123</value>
</property>


<property name="autoBind">
       <value>true</value>
</property>



<property name="attributeMappings">

	<map>
		<entry key="login"><value>cn</value></entry>
		<entry key="distinguishedName"><value>distinguishedName</value></entry>

		<entry key="firstName"><value>givenName</value></entry>
		<entry key="lastName"><value>sn</value></entry>

		<entry key="email"><value>mail</value></entry>
		<!--
		<entry key="groupMembership"><value>groupMembership</value></entry>

		-->
	</map>

NOTE : I have not changed anything in the above attributeMappings. Do
I need to change some there ?


</property>


I do the following after the above configuration.
cd SAKAI-SRC/providers

mvn clean install sakai:deploy -Dmaven.tomcat.home=/usr/local/tomcat/


The compilation goes well and I get the message "Build Successful"
I start sakai and try to login with a ldap user name, but the login fails.

Please help.

Regards
Abdul Khader
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101209/d34d55bc/attachment.html 


More information about the sakai-dev mailing list