Page 1 of 1
Login issue openKM 6.2.2 with LDAP
PostPosted:Mon Jun 03, 2013 6:16 am
by anurag
we we had configured LDAP in openKM 6.2.2 and getting issue after login
com.openkm.core.RepositoryException: PathNotFoundException: 98a99f8f-a7ca-4f09-a8a2-0128f5b07383 : /okm:trash
please suggest any solution
thanks in advance
Re: Login issue openKM 6.2.2 with LDAP
PostPosted:Tue Jun 04, 2013 6:06 am
by jllort
That is caused because you're login to ldap but you're not recovering correctly the roles. From ldap user not get ROLE_USER or ROLE_ADMIN and has no grants to create or access okm:trash. Ensure your users have one of the roles and that are correctly assigned during login.
Re: Login issue openKM 6.2.2 with LDAP
PostPosted:Wed Jun 05, 2013 2:36 pm
by pogo
Hello, I have same problem, so I have to add one of those roles to users in my LDAP, or can I add this role to users in OKM config?
EDIT: I created ROLE_USER in LDAP and it works.
Re: Login issue openKM 6.2.2 with LDAP
PostPosted:Mon Jun 10, 2013 8:31 am
by jllort
You should add ROLE_ADMIN and ROLE_USER in your ldap.
Re: Login issue openKM 6.2.2 with LDAP
PostPosted:Thu Jun 13, 2013 9:40 am
by anurag
I have configured ldap with openkm 6.2 and successfully login.In ldap I have already created one user with ROLE_ADMIN and problem is only how we login to all user in ldap with ROLE_USER.we can't add this role to all users in ldap. please suggest any solution.
Re: Login issue openKM 6.2.2 with LDAP
PostPosted:Sat Jun 15, 2013 8:51 am
by jllort
Under <beans:bean class="org.springframework.security.ldap.userdetails.DefaultLdapAuthoritiesPopulator"> add
Code: Select all<beans:property name="defaultRole" value="ROLE_USER" />
That will force all uses have this role.