[Stackoverflow] [Progress OpenEdge ABL] Ldap (active directory) user authentication failed - Name must not be empty error

Status
Not open for further replies.
A

Antoon Verroken

Guest
Question: Ldap (active directory) user authentication failed - Name must not be empty error

We have REST services we would authenticate for using with ldap.
The REST services without the ldap security works fine as expected.

We use the form and filled in our credentials when I push the login button then I get the error message. As I read the logs file, I can see that: The login to the LDAP server is fine but when it try to authenticate the user I'm getting an Name must not be empty exception.

We have looked and checked the whole properties file oeablSecurity.properties and the remote AD but we don't know where the "Name must not be empty" comes from ?

Error Message:


java.lang.IllegalArgumentException: Name must not be empty

Stacktrace of the exception: stacktrace

Logging Messages:


The oepas1.DATE.log shows the following:

17:03:13.295/53408 [catalina-exec-8] DEBUG o.s.l.c.s.AbstractContextSource - Got Ldap context on server 'ldap://192.168.35.1:389'
17:03:13.296/53409 [catalina-exec-8] DEBUG o.s.s.l.a.BindAuthenticator - Retrieving attributes...
17:03:13.297/53410 [catalina-exec-8] DEBUG o.s.s.l.u.DefaultLdapAuthoritiesPopulator - Getting authorities for user cn=Test C&C,ou=Users,ou=Domain BPB,dc=bpb,dc=be

But then the localhost..log comes back with the following:

17:03:13.303 SEVERE [catalina-exec-8] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [default] in context with path [/AuthLDAP] threw exception java.lang.IllegalArgumentException: Name must not be empty at org.springframework.util.Assert.hasText(Assert.java:168)

My Configuration: (oeablSecurity.properties in the WEB-INF folder)


http.all.authmanager=ldap
client.login.model=form
ldap.url="internal ldap url"
ldap.manager-dn=cn=Ad Reader,ou=Special Users,ou=Domain BPB,dc=bpb,dc=be
ldap.manager-password=topsecret
ldap.root.dn=
ldap.grouprole.attribute=
ldap.groupsearch.filter=(member={0})
ldap.groupsearch.base=cn=Makelaars,ou=Groups,ou=Domain BPB,dc=bpb,dc=be
ldap.usersearch.base=ou=Users,ou=Domain BPB,dc=bpb,dc=be
ldap.usersearch.filter=(sAMAccountName={0})

Expected solution:

I expect that the user is correctly authenticated after I push the login button and I see the response JSON from the REST service. (After authenticated with ldap)

Continue reading...
 
Status
Not open for further replies.
Top