Hi,
I am trying to configure OpenKM (6.2.1) with our LDAP server but no luck yet.
our directory structure is as follows:
but when I try to login with my username (for example: averma) and my ldap password it says "Authentication error".
Could you please help me figure where I am going wrong?
Regards,
Adi
I am trying to configure OpenKM (6.2.1) with our LDAP server but no luck yet.
our directory structure is as follows:
Code: Select all
Here are the entries in my OpenKM.xml:
dc=aaa,dc=bbb
|
|___
| |
| ou=svcs
| |
| ou=cto
| |
| ou=Tools
| |
| ou=egbp
| |
| cn=OPENKM_USER
| cn=OPENKM_ADMIN
|
|___
|
ou=people
|
uid=xxx
uid=yyy
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:security="http://www.springframework.org/schema/security"
xmlns:task="http://www.springframework.org/schema/task"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.1.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.1.xsd">
<security:authentication-manager alias="authenticationManager">
<security:authentication-provider ref="ldapAuthProvider" />
</security:authentication-manager>
<beans:bean id="contextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource">
<beans:constructor-arg value="ldaps://XXXXXXX:636/"/>
<beans:property name="userDn" value="uid=OPENKM-Tool,ou=zzzz,dc=aaa,dc=bbb"/>
<beans:property name="password" value="XXXXXXX"/>
<beans:property name="baseEnvironmentProperties">
<beans:map>
<beans:entry>
<beans:key>
<beans:value>java.naming.referral</beans:value>
</beans:key>
<beans:value>follow</beans:value>
</beans:entry>
</beans:map>
</beans:property>
</beans:bean>
<beans:bean id="ldapAuthProvider" class="org.springframework.security.ldap.authentication.LdapAuthenticationProvider">
<beans:constructor-arg>
<beans:bean class="org.springframework.security.ldap.authentication.BindAuthenticator">
<beans:constructor-arg ref="contextSource"/>
<beans:property name="userSearch" ref="userSearch"/>
</beans:bean>
</beans:constructor-arg>
<beans:constructor-arg>
<beans:bean class="org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator">
<beans:constructor-arg ref="contextSource"/>
<beans:constructor-arg value="ou=egbp,ou=Tools,ou=cto,ou=svcs,dc=aaa,dc=bbb"/>
<beans:property name="groupSearchFilter" value="(member={1})"/>
<beans:property name="groupRoleAttribute" value="cn"/>
<beans:property name="searchSubtree" value="true" />
<beans:property name="convertToUpperCase" value="false" />
<beans:property name="rolePrefix" value="" />
</beans:bean>
</beans:constructor-arg>
</beans:bean>
<beans:bean id="userSearch" class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">
<beans:constructor-arg index="0" value="ou=people,dc=aaa,dc=bbb" />
<beans:constructor-arg index="1" value="(uid={0})" />
<beans:constructor-arg index="2" ref="contextSource" />
<beans:property name="searchSubtree" value="true" />
</beans:bean>
</beans:beans>
but when I try to login with my username (for example: averma) and my ldap password it says "Authentication error".
Could you please help me figure where I am going wrong?
Regards,
Adi
