AEM 6.1 + LDAP - Invalid token '' @ TokenCredentials | Community
Skip to main content
varshsr
New Participant
November 18, 2015
Solved

AEM 6.1 + LDAP - Invalid token '' @ TokenCredentials

  • November 18, 2015
  • 3 replies
  • 1713 views

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-manager.topic.html/forum__zlqi-hi_experts_wear.html

any updates please share

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by varshsr

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

3 replies

varshsr
varshsrAuthorAccepted solution
New Participant
November 18, 2015

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

varshsr
varshsrAuthor
New Participant
November 18, 2015

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

Lokesh_Shivalingaiah
New Participant
November 18, 2015

Are you using the OOB ExternalLoginModule or anything customized ?