Expand my Community achievements bar.

CQ 5.6 & ldap authentication: java.lang.IllegalArgumentException: Invalid token ''

Avatar

Level 1

Hey there!

I'm trying to set up a CQ 5.6 server with ldap authentication. I followed the instructions and cq communicates well with my ldap server. I tested it in the JMX console.

I've got a very special ( and strange) project setup here. My users in CQ are being imported and created by a script from an xml file, but the whole authentication should run through ldap. When i log in with my cq/ldap user "bobama" i see this ldap.log output:

07.03.2014 14:39:03.424 *DEBUG* [0:0:0:0:0:0:0:1 [1394199543421] POST /libs/granite/core/content/login.html/j_security_check HTTP/1.1] com.day.crx.security.ldap.LDAPEntryResolver search below ou=users,o=test with filter (&(uid=bobama)(objectclass=person)) 07.03.2014 14:39:03.431 *DEBUG* [0:0:0:0:0:0:0:1 [1394199543421] POST /libs/granite/core/content/login.html/j_security_check HTTP/1.1] com.day.crx.security.ldap.LDAPLoginModule verified password of cn=bobama,ou=users,o=test against cached credentials

So thats working fine! I'm getting a verified! but my browser is showing an internal server error. My error.log is showing:

07.03.2014 14:40:35.103 *INFO* [0:0:0:0:0:0:0:1 [1394199635102] GET / HTTP/1.1] servletengine Servlet threw exception:  java.lang.IllegalArgumentException: Invalid token '' at org.apache.jackrabbit.api.security.authentication.token.TokenCredentials.<init>(TokenCredentials.java:42) at com.day.crx.security.token.impl.TokenAuthenticationHandler.createCredentials(TokenAuthenticationHandler.java:560) at com.day.crx.security.token.impl.TokenAuthenticationHandler.extractCredentials(TokenAuthenticationHandler.java:363)

It seems like i don't get a token. I did a little bit of research and found this code snippet:

public TokenCredentials(String token) throws IllegalArgumentException { if (token == null || token.length() == 0) { throw new IllegalArgumentException("Invalid token '" + token + "'"); } this.token = token; }

Ok, very nice. But this isn't helping me much with my problem. I found this article: http://forums.adobe.com/message/4299551

But also there is no solution.

Can anyone help me?

0 Replies