Dear all,
I followed this documentation for LDAP connection
https://knowage-suite.readthedocs.io/en/7.2/installation-guide/advanced-configuration.html#ldap-security-connectors
I am not able to implement LDAP connection on Knowage 7.1.7 and facing difficulties to integrate the LDAP connection
knowage.log
http-nio-8080-exec-7] 30 Nov 2020 15:41:14,396 ERROR it.eng.spagobi.commons.services.LoginModule.service:219 - userName/pwd uncorrect
[http-nio-8080-exec-2] 30 Nov 2020 15:42:01,071 ERROR it.eng.spagobi.security.LdapSecurityServiceSupplier.checkAuthentication:81 - UserName username@domainname.com not found into database. Returning [null] as user profile
[http-nio-8080-exec-2] 30 Nov 2020 15:42:01,078 ERROR it.eng.spagobi.commons.services.LoginModule.service:219 - userName/pwd uncorrect
[http-nio-8080-exec-5] 30 Nov 2020 15:43:19,143 ERROR it.eng.spagobi.security.LdapSecurityServiceSupplier.checkAuthentication:81 - UserName domain\username not found into database. Returning [null] as user profile
[http-nio-8080-exec-5] 30 Nov 2020 15:43:19,145 ERROR it.eng.spagobi.commons.services.LoginModule.service:219 - userName/pwd uncorrect
Steps done:
1- Created ldap.properties file
INITIAL_CONTEXT_FACTORY = com.sun.jndi.ldap.LdapCtxFactory
PROVIDER_URL = ldap://xxx.xx.xx.xx:389
SECURITY_AUTHENTICATION = simple
DN_PREFIX = CN=
DN_POSTFIX = ,ou=xxxx,dc=xxx,dc=xxx,dc=xxx
SEARCH_USER_BEFORE = true
SEARCH_USER_BEFORE_USER =
SEARCH_USER_BEFORE_PSW =
SEARCH_USER_BEFORE_FILTER = (&((objectclass=Person))(samAccountName=%s))
2- edit value in setenv.sh to
export JAVA_OPTS="-Xms1024m -Xmx8192m -Dldap.config=/home/knowageusr/Knowage-Server-CE/resources/ldap.properties"
3- changed the value of SPAGOBI.SECURITY.USER-PROFILE-FACTORY-CLASS.className to it.eng.spagobi.security.ProfiledLdapSecurityServiceSupplier