Using LDAP + Local User DB

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.
Post Reply
Rudolf21
Junior Boarder
Junior Boarder
Posts: 34
Joined: Fri Aug 19, 2011 6:43 am

Using LDAP + Local User DB

Post by Rudolf21 » Fri Oct 19, 2012 9:29 am

Hi there!

Is it possible to use LDAP and the local user database at the same time?
As I would like to be able to login with the okadmin or another local admin if the LDAP connection fails.
As far as I know there's no local configuration file to change the settings I made on the Web Configuration GUI.

(Using OpenKM 6.2)

Thanks in advance!

jllort
Moderator
Moderator
Posts: 10911
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Using LDAP + Local User DB

Post by jllort » Sat Oct 20, 2012 1:58 pm

Is not possible, you should use database or ldap. Aditional if you want this kind of configuration you should make some changes in source code, and is possible configure spring to several sources.

oktaya
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Fri Jan 18, 2013 10:14 am

Re: Using LDAP + Local User DB

Post by oktaya » Fri Jan 18, 2013 10:17 am

I think this is possible. For my install I did not remove the Database auth stuff but merely added the LDAP stuff in the config and it worked. I don't remember the specifics now. This is probably what's called Authentication Chaining in the Java world. Of course the openKM interface will only show one set of users (either those from the database or from ldap) but existing users will work (?) .

jllort
Moderator
Moderator
Posts: 10911
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Using LDAP + Local User DB

Post by jllort » Sun Jan 20, 2013 9:47 am

It's possible in spring use several authentication poll, but OpenKM source code has not implemented this kind of feature. If you want to collaborate on it you're welcome.

oktaya
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Fri Jan 18, 2013 10:14 am

Re: Using LDAP + Local User DB

Post by oktaya » Thu Jan 31, 2013 9:54 am

I only did this by putting both authentication mechanisms in the config file. I think this is standard java stuff which I am not really very experienced with except for a few times I've seen it in other projects under Chaining Authentication.

jllort
Moderator
Moderator
Posts: 10911
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Using LDAP + Local User DB

Post by jllort » Sat Feb 02, 2013 6:44 pm

put in OpenKM.xml is only the 50% of the problem the next 50% is make changes in source code to get several polls ( at least two, default openkm db and ldap at same time ). That obviously can be more complex but this will be the first step.

I you want collaborate in source code for it you're welcome.

Post Reply