0 Replies Latest reply on Aug 31, 2010 12:09 PM by Dan Wilberger

    Not found identity in IdentityRegistry for user root, check Login Module

    Dan Wilberger Newbie

      I am trying to use a CAS Authentication valve.  In the CAS authenticator I'm trying to construct a JBossGenericPrincipal but I'm not sure what the parameters should be.  I think this Principal is part of the cause of the problem.  Currently I'm constructing it with the container Realm, a new Subject, two SimplePrincipals for the userName, userName for credentials (seems pretty arbitrary to me), null for the two role objects.  From looking at the source, this is the best I could come up with.  I have set the login modules up according to the documented guides but have experienced no change.  It acts like the authentication valve overrides the login modules.  I've added debug statements and whatnot and have gotten to the point where I don't have ClassCastExceptions or any other errors but my user identity is still not being retrieved.  Below is some of the log output during authentication.  Any insight is greatly appreciated...

       

      12:08:01,933 DEBUG [JDBCTransaction] re-enabling autocommit
      12:08:01,933 DEBUG [JDBCTransaction] committed JDBC Connection
      12:08:01,933 DEBUG [ConnectionManager] aggressively releasing JDBC connection
      12:08:01,933 DEBUG [ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
      12:08:01,980 DEBUG [ResourceRequestFilter] Use a merged CSS: /eXoResources/skin/Stylesheet-lt.css
      12:08:02,074 DEBUG [CasAuthenticator] principal root authenticated via session state
      12:08:02,074 DEBUG [CasAuthenticator] PRINCIPAL CLASS: org.jboss.web.tomcat.security.JBossGenericPrincipal
      12:08:02,074 INFO  [CasAuthenticator] setting org.soulwing.cas.serviceValidation to org.soulwing.cas.client.jdom.ServiceValidationSuccessResponse@1ead58e
      12:08:02,074 DEBUG [CasAuthenticator] principal root authenticated via session state
      12:08:02,074 INFO  [CasAuthenticator] CAS user root Request URI /portal/templates/skin/webui/component/UIHomePagePortlet/DefaultSkin/background/BgRightColumn.gif
      12:08:02,074 DEBUG [CasAuthenticator] PRINCIPAL CLASS: org.jboss.web.tomcat.security.JBossGenericPrincipal
      12:08:02,074 INFO  [CasAuthenticator] *****USER is KNOWN*****
      12:08:02,074 INFO  [CasAuthenticator] setting org.soulwing.cas.serviceValidation to org.soulwing.cas.client.jdom.ServiceValidationSuccessResponse@1ead58e
      12:08:02,074 INFO  [CasAuthenticator] CAS user root Request URI /portal/templates/skin/webui/component/UIHomePagePortlet/DefaultSkin/background/HomePagePortlet.gif
      12:08:02,074 INFO  [CasAuthenticator] *****USER is KNOWN*****
      12:08:02,074 DEBUG [CasAuthenticator] principal root authenticated via session state
      12:08:02,074 DEBUG [CasAuthenticator] PRINCIPAL CLASS: org.jboss.web.tomcat.security.JBossGenericPrincipal
      12:08:02,074 DEBUG [SetCurrentIdentityFilter] Looking for Conversation State DA84C284551DD993A25DFCFC9F13030F
      12:08:02,074 DEBUG [SetCurrentIdentityFilter] Looking for Conversation State DA84C284551DD993A25DFCFC9F13030F
      12:08:02,074 INFO  [CasAuthenticator] setting org.soulwing.cas.serviceValidation to org.soulwing.cas.client.jdom.ServiceValidationSuccessResponse@1ead58e
      12:08:02,074 DEBUG [SetCurrentIdentityFilter] Conversation State not found, try create new one.
      12:08:02,074 DEBUG [SetCurrentIdentityFilter] Conversation State not found, try create new one.
      12:08:02,074 INFO  [CasAuthenticator] CAS user root Request URI /portal/templates/skin/webui/component/UIHomePagePortlet/DefaultSkin/background/Line.gif
      12:08:02,074 ERROR [SetCurrentIdentityFilter] Not found identity in IdentityRegistry for user root, check Login Module.
      12:08:02,074 ERROR [SetCurrentIdentityFilter] Not found identity in IdentityRegistry for user root, check Login Module.
      12:08:02,074 DEBUG [CasAuthenticator] principal root authenticated via session state
      12:08:02,074 INFO  [CasAuthenticator] *****USER is KNOWN*****
      12:08:02,074 DEBUG [ThreadLocalSessionProviderInitializedFilter] Current conversation state is not set
      12:08:02,074 DEBUG [ThreadLocalSessionProviderInitializedFilter] Current conversation state is not set
      12:08:02,074 DEBUG [CasAuthenticator] PRINCIPAL CLASS: org.jboss.web.tomcat.security.JBossGenericPrincipal