Help with understanding the LDAP/AD intergration
PostPosted:Wed Mar 23, 2011 9:13 am
Hi,
I have read about 5-10 post on how to implement a AD/LDAP sync with OpenKM.
But i have so far not bin able to sync up to my ad.
First i have added the Ldap lines in /opt/jboss-4.2.3.GA/OpenKM.cfg
Then i have added/changed the /opt/jboss-4.2.3.GA/server/default/conf/login-config.xml so it inclueds the LDAP values.
I have also added :
I run a "tail -f /opt/jboss-4.2.3.GA/server/default/log/server.log" during my login attempt but nothing new is written during.
I know that the correct way seams to be to pay 30€ to get in to the wiki and get the "how to" but right now we are just setting this up to see if it works in over environment and if it dose we will buy support and the hole shit.
OpenKM.cfg
Edit:
The error we get is "Authentication error" when we try to login with AD credentials.
Cheers,
Björn
I have read about 5-10 post on how to implement a AD/LDAP sync with OpenKM.
But i have so far not bin able to sync up to my ad.
First i have added the Ldap lines in /opt/jboss-4.2.3.GA/OpenKM.cfg
Then i have added/changed the /opt/jboss-4.2.3.GA/server/default/conf/login-config.xml so it inclueds the LDAP values.
I have also added :
Code: Select all
To /opt/jboss-4.2.3.GA/server/default/conf/jboss-log4j.xml but i can't find any logs. And i see no attempt on binding to my domain.<category name="org.jboss.security">
<priority value="DEBUG" />
</category>
I run a "tail -f /opt/jboss-4.2.3.GA/server/default/log/server.log" during my login attempt but nothing new is written during.
I know that the correct way seams to be to pay 30€ to get in to the wiki and get the "how to" but right now we are just setting this up to see if it works in over environment and if it dose we will buy support and the hole shit.
OpenKM.cfg
Code: Select all
login-config.xml
principal.adapter=com.openkm.principal.LdapPrincipalAdapter
principal.ldap.server=ldap://DC.DOMAIN.local
principal.ldap.security.principal=CN=Sync,OU=Sync Users,OU=Users,DC=DOMAIN,DC=local
principal.ldap.security.credentials=Password
principal.ldap.user.search.base=ou=Users,dc=DOMAIN,dc=local
principal.ldap.user.search.filter=(objectclass=inetOrgPerson)
principal.ldap.user.attribute=uid
principal.ldap.role.search.base=ou=Users,dc=DOMAIN,dc=local
principal.ldap.role.search.filter=(&(objectClass=inetOrgPerson)(uid={0}))
principal.ldap.role.attribute=cn
principal.ldap.roles.by.user.search.filter=(&(objectClass=groupOfNames)(cn={0}))
principal.ldap.users.by.role.search.filter=(&(objectClass=inetOrgPerson)(uid={0}))
Code: Select all
Any pointers would be great full! <!-- OpenKM -->
<application-policy name = "OpenKM">
<authentication>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag = "required">
<module-option name="java.naming.provider.url">ldap://DC.DOMAIN.local</module-option>
<module-option name="bindDN">CN=Sync,OU=Sync Users,OU=Users,DC=DOMAIN,DC=local</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="bindCredential">Ldap77%</module-option>
<module-option name="baseCtxDN">OU=Users,DC=DOMAIN,DC=local</module-option>
<module-option name="baseFilter">(sAMAccountName={0})</module-option>
<module-option name="rolesCtxDN">CN=Test Users,OU=Distribution Groups,OU=Users,DC=DOMAIN,DC=local</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeIsDN">false</module-option>
<module-option name="roleAttributeID">cn</module-option>
<module-option name="roleRecursion">2</module-option>-->
<module-option name="searchTimeLimit">5000</module-option>
<module-option name="searchScope">SUBTREE_SCOPE</module-option>
<module-option name="defaultRole">UserRole</module-option>
</login-module>
</authentication>
</application-policy>
Edit:
The error we get is "Authentication error" when we try to login with AD credentials.
Cheers,
Björn