0 votes
1 view

Dear All,

I am facing an issue to integrate to LDAP and i recieved the below error at knowage.log file 

I have chose Knowage ships with three LDAP security connectors (FullLdapSecurityServiceSupplier)

ldap.propert file setting as below

INITIAL_CONTEXT_FACTORY = com.sun.jndi.ldap.LdapCtxFactory
PROVIDER_URL = ldap://XXXXXXX:389
SECURITY_AUTHENTICATION     =   simple
DN_PREFIX = CN=
DN_POSTFIX =,OU=XXXX,DC=XXXX,DC=XXXX,DC=XXX
SEARCH_USER_BEFORE        = false
SEARCH_USER_BEFORE_FILTER = (objectclass=person)

Knowage.log error

[http-nio-8080-exec-7] 11 Aug 2021 11:25:44,405 ERROR it.eng.spagobi.commons.services.LoginModule.service:191 - Reading user information... ERROR

java.lang.NullPointerException

at it.eng.spagobi.commons.services.LoginModule.service(LoginModule.java:171)

at it.eng.spago.dispatching.module.DefaultPage.invokeServiceBusiness(DefaultPage.java:352)

at it.eng.spago.dispatching.module.DefaultPage.nextStep(DefaultPage.java:302)

at it.eng.spago.dispatching.module.DefaultPage.service(DefaultPage.java:202)

at it.eng.spago.dispatching.module.ModuleCoordinator.service(ModuleCoordinator.java:102)

at it.eng.spago.dispatching.httpchannel.AdapterHTTP.service(AdapterHTTP.java:413)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at sun.reflect.GeneratedMethodAccessor386.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:282)

at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:279)

at java.security.AccessController.doPrivileged(Native Method)

Please Advice for what could be the issue and what i am missing with the configurations

 

regards

Environment Ubuntu 20 x64
asked Aug 31, 2021 in LDAP by smily99 (210 points) | 1 view

1 Answer

0 votes
Best answer

Hi,
if you are interested only in authenticating users you should choose LdapSecurityServiceSupplier instead of FullLdapSecurityServiceSupplier.

For writing the configuration file, take a look at the official documentation https://knowage-suite.readthedocs.io/en/7.4/installation-guide/ldap-connector.html

Bye,
Marco

answered Aug 31, 2021 by mbalestri (9,250 points)
selected Nov 17, 2021 by emarchis
1,553 questions
1,017 answers
2,037 comments
2,567 users