Page 1 of 1

Changes to login-config.xml have no effect

PostPosted:Tue Feb 19, 2008 2:18 pm
by michael
Hi,
I installed OpenKM 1.2 and I have trouble configuring the login mechanism.

I want to add ldap authentication and followed the documentation, but to no avail.
It seems, that changes to server/default/conf/login-config.xml have no effect at all.

E.g. If I change the OpenKM application policy to
<!-- OpenKM -->
<application-policy name = \"OpenKM\">
<authentication>
<login-module code=\"org.jboss.security.auth.spi.UsersRolesLoginModule\" flag = \"required\">
<module-option name=\"usersProperties\">users2.properties</module-option>
<module-option name=\"rolesProperties\">roles2.properties</module-option>
</login-module>
<login-module code=\"org.jboss.security.ClientLoginModule\" flag=\"required\" />
</authentication>
</application-policy>

And create users2.properties and roles2.properties, those files are not used at all.

server.log has

2008-02-19 15:04:59,590 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Added other, org.jboss.security.plugins.SecurityDomainContext@b21d14 to map
2008-02-19 15:04:59,607 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[]
2008-02-19 15:04:59,611 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[]

So it seems, login-config.xml is not used (and my initial attempts to add ldap authentication failed because of that too).

Any ideas.

Re:Changes to login-config.xml have no effect

PostPosted:Wed Feb 27, 2008 7:33 am
by pavila
Yes, this seems to be a bug. You need to edit the WEB-INF/jboss-web.xml file in the OpenKM.war (this is located into the OpenKM.ear) and add this line after the <jboss-web> tag:
Code: Select all
<security-domain>java:/jaas/OpenKM</security-domain>

Re:Changes to login-config.xml have no effect

PostPosted:Thu Mar 13, 2008 4:29 pm
by michael
Thanks, that seemed to work.
On the other hand, it\'s quite tedious to unpack/repack two jar files.
So, will this be fixed in the next release?

Re:Changes to login-config.xml have no effect

PostPosted:Thu Mar 13, 2008 5:43 pm
by pavila
Yes, this issue is fixed in the OpenKM 2.0a release :)