Page 1 of 1

OpenKM 5.1.10 lookup LDAP users slow

PostPosted:Wed Oct 17, 2012 8:56 am
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.

Re: OpenKM 5.1.10 lookup LDAP users slow

PostPosted:Wed Oct 17, 2012 6:05 pm
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.

Re: OpenKM 5.1.10 lookup LDAP users slow

PostPosted:Sun Jun 23, 2013 9:15 pm
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

Re: OpenKM 5.1.10 lookup LDAP users slow

PostPosted:Mon Jun 24, 2013 2:37 pm
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 ).