• OpenKM 5.1.10 lookup LDAP users slow

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #18768  by chungvoky
 
Hi all,
After upgrade from 5.1.9 to 5.1.10, when I login to OpenKM, it takes many time to load first page. In the first page, the Loading OpenKM window take about one minute in "Loading user values" line. I think the reason of this problem is new function of version 5.1.10: show username instead uid. I'd tried clear value of principal.ldap.username.attribute, principal.ldap.username.search.base and principal.ldap.username.search.filter but still slow when loading user values. I'm using OpenLDAP as backend database. My config is showed bellow:
Code: Select all
principal.adapter: com.openkm.principal.LdapPrincipalAdapter 
principal.ldap.mail.attribute: mail 
principal.ldap.mail.search.base: ou=MyOU,dc=mydomain,dc=com 
principal.ldap.mail.search.filter: (&(objectClass=inetOrgPerson)(uid={0})) 
principal.ldap.referral: 
principal.ldap.role.attribute: cn
principal.ldap.role.search.base: ou=OpenKM,dc=mydomain,dc=com 
principal.ldap.role.search.filter: (&(objectclass=groupOfNames)(!(cn=OpenKMroles))) 
principal.ldap.roles.by.user.attribute: memberOf 
principal.ldap.roles.by.user.search.base: ou=MyOU,dc=mydomain,dc=com 
principal.ldap.roles.by.user.search.filter: (&(objectClass=inetOrgPerson)(uid={0})) 
principal.ldap.security.credentials: secret
principal.ldap.security.principal: cn=openkm,dc=mydomain,dc=com 
principal.ldap.server: ldaps://ldap.mydomain.com 
principal.ldap.user.attribute: uid 
principal.ldap.user.search.base: ou=MyOU,dc=mydomain,dc=com 
principal.ldap.user.search.filter: (&(objectClass=inetOrgPerson)(memberOf=cn=OpenKMusers,ou=OpenKM,dc=mydomain,dc=com)) 
principal.ldap.username.attribute: displayName 
principal.ldap.username.search.base: ou=MyOU,dc=mydomain,dc=com 
principal.ldap.username.search.filter: (uid={0}) 
principal.ldap.users.by.role.attribute: uid 
principal.ldap.users.by.role.search.base: ou=MyOU,dc=mydomain,dc=com 
principal.ldap.users.by.role.search.filter: (&(objectClass=inetOrgPerson)(memberOf=cn={0},ou=OpenKM,dc=mydomain,dc=com)) 
Please help me to increase speed when loading user values. Thanks all.
 #18782  by jllort
 
In version 5.1.10 still you got this problem, I'm not sure if it's solved on integration.openkm.com but on 6.x is yet solved. In 5.x there's a full users mapping ( userid / username ) that has not good performance, but was a good aproximation done from one community collaborator. On version 6 we have extended classes with User bean which comes with userid and username variables, and not all the usermap is loaded in UI. Simply correspondences between userid to username are done in server by demand.
 #23671  by Sascha
 
Hi together! I have an addition to the starting-state "Loading user values". I am using OpenKM 6.2.3 and the error occures when I activate macro.actions with one or more pending/destination-folders defined in the config.

Is that an known problem with this version? In an previous version it has been working, because I saw it working in the youtube video "macros" from 12/2012. It would be nice if someone could give an hint.

Thanks a lot!
Sascha
 #23698  by jllort
 
Sascha this has relation with slow ldap or other kind of problem. If it's other kind of problem add in new post ( do not merge different questions on same post, that generate confusion ).

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.