• OpenKM.xml Config

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #23057  by ServerGuy
 
Reading over the doc for setting up LDAP for OpenKM it says to change the OpenKM.xml file to what is displayed in the code box. My question is, will i replace everything in the XML file with what is displayed or where will i insert that code. Also what will the entire OpenKM.xml file look like. Ive been looking all over for a normal LDAP configuration example but the examples I've found all have caveats. Does anyone have an example to a standard LDAP configuration example that is a little more detailed than what the Doc has?

Thanks
 #23080  by jllort
 
Here you can find real examples:
http://wiki.openkm.com/index.php/LDAP_examples

Using the OpenKM.xml in examples ( is complete ) you can replate entire xml document withit ( obviously with some modified parameters ). specially I suggest take a look this configuration http://wiki.openkm.com/index.php/Ldap-example3

In your case to start, replace ( will be more easy not filtering by users who are members or ROLE_USER and ROLE_ADMIN ):
Code: Select all
<beans:constructor-arg index="1" value="(&(sAMAccountName={0})(|(memberOf=CN=ROLE_ADMIN,OU=OpenKM,DC=company,DC=com)(memberOf=CN=ROLE_USER,OU=OpenKM,DC=company,DC=com)))" />
for
Code: Select all
<beans:constructor-arg index="1" value="(sAMAccountName={0})" />
If you pass the login page ( althought you get 403 error ) you make an advance ( if you got 403 means you authenticate to ldap but do not get necessary roles, all users should have ROLE_USER or ROLE_ADMIN at least)

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.