Hi Koustubh,
1. Use is for all users
2. Using DevTest 9.1
3. Just connected to AD/LDAP and doesnt not work. But if we put properties in local.properties file then it works.
We have implemented current solution with local.properties configuration where users are authenticated, will be added to DevTest console on successful authorization and roles are managed in DevTest. Please suggest if you have any resolution to this issue - xml based LDAP ?
Here is my authentication-provider.xml which is having Bad Credentials error -
...
autoAddUsers="true"
authenticateOnly="false"
enabled="true"
type="LDAP"
defaultRole="Guest"
rejectUnmappedUsers="true">
<url>ldap://*********.com</url>
<user-dn>CN=XXXX,CN=Users,DC=xxxx,DC=xxxx,DC=xxxx,DC=xxxx</user-dn>
<user-password>{cry}******************</user-password>
<user-dn-pattern>CN={0},CN=Users,DC=xxxx,DC=xxxx,DC=xxxx,DC=xxxx</user-dn-pattern>
<user-search-base>DC=xxxx,DC=xxxx,DC=xxxx,DC=xxxx</user-search-base>
<user-search-filter>(&(objectClass=user)(sAMAccountName={0}))</user-search-filter>
</authentication-provider>
Here is my properties in local.properties which is working fine.
lisa.acl.auth.module.impl=com.itko.lisa.acl.custom.BaseLDAPAuthenticationModule
lisa.acl.ldap.ldapUrl=ldap://*********.com
lisa.acl.ldap.securityPrincipal=CN=XXXX,CN=Users,DC=xxxx,DC=xxxx,DC=xxxx,DC=xxxx
lisa.acl.ldap.securityCredential_enc=******************
lisa.acl.ldap.securityAuthentication=simple
lisa.acl.ldap.baseContext=DC=xxxx,DC=xxxx,DC=xxxx,DC=xxxx
lisa.acl.ldap.userSearchFilter=(objectClass=user)
lisa.acl.ldap.usernameAttribute=sAMAccountName
lisa.acl.ldap.userSearchAllDepths=true
lisa.acl.ldap.lisaDefaultRole=Guest