Issue when trying to login trough ldap
PostPosted:Fri Feb 18, 2011 9:06 pm
Hi guys,
I am trying to integrate OpenKM with Ldap, in another post you helped me with the login-config.xml and I was able to login succesfully.
Now the issue is that when I login system starts to load everything, it freezes out when loading the templates and shows the following error:
The system has generated an error
Here is my login-config.xml:
Best regards,
RC.
I am trying to integrate OpenKM with Ldap, in another post you helped me with the login-config.xml and I was able to login succesfully.
Now the issue is that when I login system starts to load everything, it freezes out when loading the templates and shows the following error:
The system has generated an error
Code: Select all
Is that because I need to configure something else in openKM.cfg?OKM-012015(GetTemplate): OKM-012015
okm:templates
In the server.log I got:
2011-02-18 14:48:27,251 ERROR [es.git.openkm.frontend.server.OKMRepositoryServlet] okm:templates
es.git.openkm.core.PathNotFoundException: okm:templates
.........
Caused by: javax.jcr.PathNotFoundException: okm:templates
at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2478)
at es.git.openkm.module.direct.DirectFolderModule.getProperties(DirectFolderModule.java:81)
at es.git.openkm.module.direct.DirectRepositoryModule.getTemplatesFolder(DirectRepositoryModule.java:433)
... 30 more
Here is my login-config.xml:
Code: Select all
And the openkm.cfg, everything is commented as per I don't know which things should be there:
<!-- 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://avantica.avanticatec.net:3268</module-option>
<module-option name="bindDN">cn=Roy Calvo Burgos,cn=Users,dc=avantica,dc=avanticatec,dc=net</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="bindCredential">RrCc56789</module-option>
<module-option name="baseCtxDN">cn=Users,dc=avantica,dc=avanticatec,dc=net</module-option>
<module-option name="baseFilter">(sAMAccountName={0})</module-option>
<module-option name="rolesCtxDN">cn=Users,dc=avantica,dc=avanticatec,dc=net</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeID">cn</module-option>
<module-option name="roleAttributeIsDN">false</module-option>
<module-option name="roleRecursion">2</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
<module-option name="defaultRole">UserRole</module-option>
<module-option name="allowEmptyPasswords">false</module-option>
</login-module>
</authentication>
</application-policy>
Code: Select all
The rest of the configuration is the default openkm uses. If you could help me I would really appreciate it.#principal.ldap.server=ldap://192.168.1.15:3268
#principal.adapter=es.git.openkm.principal.LdapPrincipalAdapter
#principal.ldap.security.principal=cn=Roy Calvo Burgos,cn=avantica,cn=users,dc=avantica,dc=avanticatec,dc=net
#principal.ldap.security.credentials=RrCc56789
#principal.ldap.user.search.base=cn=Users,dc=avantica,dc=avanticatec,dc=net</module-option>
#principal.ldap.user.search.filter=(sAMAccountName={0})
#principal.ldap.user.attribute=sAMAccountName
#principal.ldap.role.search.base=cn=Users,dc=avantica,dc=avanticatec,dc=net
#principal.ldap.role.search.filter=(member={1})
#principal.ldap.role.attribute=cn
#principal.ldap.mail.search.base=cn=Users,dc=avantica,dc=avanticatec,dc=net
#principal.ldap.mail.search.filter=(member={1})
#principal.ldap.mail.attribute=mail
#system.login.lowercase=on
Best regards,
RC.