Expand my Community achievements bar.

SOLVED

AEM 6.1 + LDAP - Invalid token '' @ TokenCredentials

Avatar

Level 5

Getting the following error when using AEM 6.1. with LDAP 

- Authentication is happening against LDAP

- user in LDAP created in AEM and able to see log as ExternalLoginModule IDP ldap returned valid user LdapIdentity

- when user is redirected to success page  get the following  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:676)
    at com.day.crx.security.token.impl.TokenAuthenticationHandler.extractCredentials(TokenAuthenticationHandler.java:443)
    at org.apache.sling.auth.core.impl.AuthenticationHandlerHolder.doExtractCredentials(AuthenticationHandlerHolder.java:75)
    at org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder.extractCredentials(AbstractAuthenticationHandlerHolder.java:60)
    at org.apache.sling.auth.core.impl.SlingAuthenticator.getAuthenticationInfo(SlingAuthenticator.java:709)
    at org.apache.sling.auth.core.impl.SlingAuthenticator.doHandleSecurity(SlingAuthenticator.java:461)
    at org.apache.sling.auth.core.impl.SlingAuthenticator.handleSecurity(SlingAuthenticator.java:446)
    

looks similar to this issue

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

any updates please share

1 Accepted Solution

Avatar

Correct answer by
Level 5

Keeping the default  ExternalLoginModuleFactory  JAAS ranking fixes this issue :-)

View solution in original post

3 Replies

Avatar

Level 10

Are you using the OOB ExternalLoginModule or anything customized ?

Avatar

Level 5

It is only OOTB login module with ldap and sync handler enabled

Avatar

Correct answer by
Level 5

Keeping the default  ExternalLoginModuleFactory  JAAS ranking fixes this issue :-)