Page 1 of 1

Problem with LDAP login

PostPosted:Wed Oct 23, 2013 4:56 pm
by abel.silva
Hi

I'm trying to configure OpenKM with LDAP but I can only login if I insert in OpenKM.xml:
Code: Select all
<beans:property name="defaultRole" value="ROLE_ADMIN" />
When I login (forcing the ROLE_ADMIN) I can see my user in the ROLE_ADMIN and in the ROLE_USER groups using the Administration interface.

If I remove the line I can't login and I get the following error:
Code: Select all
OKM-012015(GetRootFolder): Path not exist

b9dc6c77-d455-45f2-9e8e-05bff8e7168e : /okm:root
Image

The log when the error occurs is at:
http://pastebin.com/1ndTj0VS

I've checked the permissions on /okm:root and ROLE_USERS has full permissions.
Does anyone know how I can solve this?

Thank you
abel

Re: Problem with LDAP login

PostPosted:Wed Oct 23, 2013 7:01 pm
by michaeled
Your configuration seem to retrieve the useŕname but not his group, can you send your configuration ?

Re: Problem with LDAP login

PostPosted:Thu Oct 24, 2013 2:22 pm
by abel.silva
Hi

The configuration is at
http://pastebin.com/dbLJR9aW

My OpenKM LDAP configuration is:
Image

The search results are:
Image
Image

Re: Problem with LDAP login

PostPosted:Sat Oct 26, 2013 8:26 am
by jllort
The problem is on OpenKM.xml forget OpenKM Configuration parameters at administration panel. The problem is clear when login you're not assigning role to user. Can be for two reasons:
- OpenKM.xml wrong ( I suggest take a look these complete examples http://wiki.openkm.com/index.php/LDAP_examples ( specially the last )
- You've not created in your AD ROLE_USER and ROLE_ADMIN or you've not assigned to the user.

Re: Problem with LDAP login

PostPosted:Mon Oct 28, 2013 4:11 pm
by abel.silva
ok, it was in OpenKM.xml

I got it working by following
https://www.nosam.com/node/8

My final configuration is the following:
http://pastebin.com/iQa4LhyY

Thank you
abel

Re: Problem with LDAP login

PostPosted:Wed Oct 30, 2013 12:02 pm
by jllort