Hi there
For support members that can access the wiki page MySQL-OpenKM 5.0, I have to make a minor correction regarding the JBoss Login configuration.
Instead of the proposed change of $JBOSS_HOME/server/default/conf/login-config.xml :
I think, it should be changed to
Best regards.
For support members that can access the wiki page MySQL-OpenKM 5.0, I have to make a minor correction regarding the JBoss Login configuration.
Instead of the proposed change of $JBOSS_HOME/server/default/conf/login-config.xml :
Code: Select all
<!-- OpenKM -->
<application-policy name = "OpenKM">
<authentication>
<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
<module-option name="dsJndiName">java:/OpenKMDS</module-option>
<module-option name="principalsQuery">select usr_password as PASSWD from OKM_USER where usr_id=? and usr_active=true</module-option>
<module-option name="rolesQuery">select ur_role as ROLEID, 'Roles' from OKM_USER_ROLE where ur_user=?</module-option>
<module-option name="hashAlgorithm">md5</module-option>
<module-option name="hashEncoding">hex</module-option>
</login-module>
</authentication>
</application-policy>
I think, it should be changed to
Code: Select all
And this is because the table OKM_USER has column usr_active declared as char(1) not as boolean.<!-- OpenKM -->
<application-policy name = "OpenKM">
<authentication>
<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
<module-option name="dsJndiName">java:/OpenKMDS</module-option>
<module-option name="principalsQuery">select usr_password as PASSWD from OKM_USER where usr_id=? and usr_active='T'</module-option>
<module-option name="rolesQuery">select ur_role as ROLEID, 'Roles' from OKM_USER_ROLE where ur_user=?</module-option>
<module-option name="hashAlgorithm">md5</module-option>
<module-option name="hashEncoding">hex</module-option>
</login-module>
</authentication>
</application-policy>
Best regards.