• Error communicating with the server (getUserWorkspace)

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #12673  by jllort
 
This week i changed the active directoy wiki page, consider read it if can help you.
I suggest you install apache ldap studio and execute there your queries ... that will help you to find correct query, that's really your problem.
 #12880  by ox0spy
 
I setup OpenKM, and config auth with Windows AD server, but, when login OpenKM, I got error message "Error communicating with the server (getUserWorkspace)".

I have red this thread, I don't know how to setup it.

login-config.xml
Code: Select all
    <application-policy name = "OpenKM">
       <authentication>
          <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" >
             <module-option name="java.naming.provider.url">ldap://172.26.10.10:3268</module-option>
             <module-option name="bindDN">cn=test,ou=SWD,dc=cc,dc=xp,dc=com</module-option>
             <module-option name="java.naming.security.authentication">simple</module-option>
             <module-option name="java.naming.referral">follow</module-option>
             <module-option name="bindCredential">test</module-option>
             <module-option name="baseCtxDN">ou=SWD,dc=cc,dc=xp,dc=com</module-option>
             <module-option name="baseFilter">(sAMAccountName={0})</module-option>
             <module-option name="rolesCtxDN">ou=SWD,dc=cc,dc=xp,dc=com</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">SUBTREE_SCOPE</module-option>
             <module-option name="defaultRole">UserRole</module-option>
             <module-option name="allowEmptyPasswords">false</module-option> 
          </login-module>
       </authentication>
    </application-policy>
server/default/data/hypersonic/OKM_APP.script:
Code: Select all
INSERT INTO OKM_CONFIG VALUES('principal.adapter','string','com.openkm.principal.DatabasePrincipalAdapter')
INSERT INTO OKM_CONFIG VALUES('principal.database.filter.inactive.users','boolean','true')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.mail.attribute','string','mail')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.mail.search.base','string','dc=cc,dc=xp,dc=com')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.mail.search.filter','string','(objectclass=person)')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.role.attribute','string','cn')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.role.search.base','string','ou=SWD,dc=cc,dc=xp,dc=com')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.role.search.filter','string','(objectclass=group)')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.roles.by.user.attribute','string','memberOf')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.roles.by.user.search.base','string','ou=SWD,dc=cc,dc=xp,dc=com')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.roles.by.user.search.filter','string','(&(objectClass=person)(cn={0}))')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.security.credentials','string','test')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.security.principal','string','cn=test,ou=SWD,dc=cc,dc=xp,dc=com')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.server','string','ldap://172.26.10.10:3268')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.user.attribute','string','sAMAccountName')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.user.search.base','string','dc=cc,dc=xp,dc=com')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.user.search.filter','string','(objectclass=person)')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.users.by.role.attribute','string','member')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.users.by.role.search.base','string','ou=SWD,dc=cc,dc=xp,dc=com')
INSERT INTO OKM_CONFIG VALUES('principal.ldap.users.by.role.search.filter','string','(&(objectClass=group)(cn={0}))')
 #12898  by jllort
 
The problem is ins configuration parameters. login-config.xml is correctly and only used to authentication purpose.

Put here the error appearing in server.log to see the line what produces the error. Probably will be getting roles by user.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.