We are trying to get Ldap authentication working with OpenKM. In our login-config.xml, if I specify a username with no special characters in either the username or password I can log into openKM, however our AD administrator account has a - in the username and the password has uppercase and lower case letters as well it starts with an = and has a - and * in it. I am assuming there is some problem here encoding either the username or the password.
Below is our login-config.xml file, I have changed the actual username and password but kept the general idea of how they are formatted.
Below is our login-config.xml file, I have changed the actual username and password but kept the general idea of how they are formatted.
Code: Select all
<application-policy name="OpenKM">
<authentication>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" >
<module-option name="java.naming.provider.url">ldap://ldapURL:636</module-option>
<module-option name="java.naming.security.protocol">ssl</module-option>
<module-option name="bindDN">CN=Username-test,ou=Accounts,dc=test,dc=test,dc=edu</module-option>
<module-option name="java.naming.security.authentication">simple</module-option>
<module-option name="bindCredential">=Tdf2-s1*3045</module-option>
<module-option name="baseCtxDN">ou=Accounts,dc=test,dc=test,dc=edu</module-option>
<module-option name="baseFilter">(sAMAccountName={0})</module-option>
<module-option name="rolesCtxDN">ou=Accounts,dc=test,dc=test,dc=edu</module-option>
<module-option name="roleFilter">(sAMAccountName={0})</module-option>
<module-option name="roleAttributeID">memberOf</module-option>
<module-option name="roleAttributeIsDN">true</module-option>
<module-option name="roleRecursion">0</module-option>
<module-option name="roleNameAttributeID">cn</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
<module-option name="allowEmptyPasswords">false</module-option>
<module-option name="java.naming.referral">follow</module-option>
<!-- <module-option name="defaultRole">UserRole</module-option> -->
</login-module>
</authentication>
</application-policy>