Page 1 of 1

OpenKM.xml Config

PostPosted:Wed May 15, 2013 4:14 pm
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

Re: OpenKM.xml Config

PostPosted:Thu May 16, 2013 9:40 pm
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)