Page 1 of 2

LDAP configuration

PostPosted:Tue Jun 27, 2017 3:37 am
by mbmni
dear sir / madam,

what are the compulsory attributes that i must filled under configuration parameters to successfully connected to LDAP server through OpenKM?

Thank You

Re: LDAP configuration

PostPosted:Tue Jun 27, 2017 10:06 am
by mbmni
dear sir / madam,

how can i map the LDAP UserPassword attribute with OpenKM Login Password?

because i am always getting an Authentication Error while login to the OpenKM.

please be kind to guide me.

thank you

Re: LDAP configuration

PostPosted:Thu Jun 29, 2017 8:41 pm
by jllort
Take this documentation section as a guide https://docs.openkm.com/kcenter/view/ok ... roles.html

First I suggest do not change OpenKM.xml ( what is involved with login ) and only change configuration parameters. When you got success on it, then try to change OpenKM.xml ( authentication )

Re: LDAP configuration

PostPosted:Fri Jun 30, 2017 5:39 am
by mbmni
dear sir / madam,

when i write the following code in OpenKM.xml file, i am getting a 404 error.

the login page is not displaying.
(12.5 KiB) Downloaded 237 times
when i remove that code from the OpenKM.xml file, then i can view the login page.

can you please explain me the reason for getting the 404 error?

thank you.

Re: LDAP configuration

PostPosted:Sat Jul 01, 2017 9:30 am
by jllort
Take a look at catalina.log file, should be an error there, usually a malformed xml is the reason why application is not deployed.

Re: LDAP configuration

PostPosted:Sun Jul 02, 2017 5:53 am
by mbmni
dear sir / madam,

i want to bind the OpenKM login with the openldap users.

what i need to write in OpenKM.xml to bind with my openldap user's user name and password?

what are the configurations i must do to success the binding process?

please be kind to guide me.

thank you

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 1:21 am
by mbmni
dear sir / madam,

is their any relationship between the OpenKM Users (Administration ---> users) and the OKM_USER table in the okmdb database?

how update the OKM_USER table automatically after adding the users to the OpenKM user list?

please be kind to answer for this two questions.

thank you

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 3:05 am
by vhlen
The OKM_USER table stores User registered on the system. When you add an user on Administrator page, it also inserts an User on the database automatically.

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 6:55 am
by mbmni
dear sir / madam,

it is not happening for me after i add a user to the Openkm Users (Administration ---> Users).
can you please guide me to perform that transaction?

thank you

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 8:55 am
by vhlen
I think we don't need do anything for that process. This feature works fine on OpenKM community version. Please check the server log and your changes on the source code.There are somethings wrong with it, I think.

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 9:00 am
by mbmni
dear sir / madam,

this is the user list displaying in the OpenKM (Administration -----> users). but those users are not saved in the OKM_USER table.

i am attaching the screenshot of it.
testing.JPG
testing.JPG (46.65 KiB) Viewed 5880 times
these users are not adding in the OKM_USER table in okmdb database.

can you please guide me in this problem?

thank you.

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 9:19 am
by vhlen
Please go to: Administrator -> Database query (On your administrator page), then Select the JBDC type and execute the query:
Code: Select all
Select * from okm_user
These users should be showed when you execute this query.

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 9:34 am
by mbmni
dear sir/ madam.

thank you for your valuable answer and time spending.

do we need to configure any hibernate parameters in (Administration ---> Configuration) ?

thank you

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 9:48 am
by vhlen
Did you try the query on Administrator->Data Query page? How is the result sql? If there are users records, please check DB connection that OpenKM is using.

Re: LDAP configuration

PostPosted:Mon Jul 03, 2017 9:53 am
by mbmni
dear sir / madam,

this is the result i got when i execute the query.

SELECT * from OKM_USER;

i am attaching the screenshot.
testing2.JPG
testing2.JPG (60.53 KiB) Viewed 5870 times
please look into this and guide me.

thank you.