0 Replies Latest reply on Jul 20, 2012 6:47 AM by dario novakovic

    [JBoss7] Custom principal

    dario novakovic Newbie

      I need to create custom princiapl which holds some more data about the user (besides username from org.jboss.security.SimplePrincipal). I use LDAP login module, it is configured and it works for authentication. On the login screen, user also slects department and I'd like to store that info in the principal class.


      I extended SimplePrincipal, added "department" field and configured LDAP login module like this


      <module-option name="principalClass" value="mypkg.MyPrincipal"/>


      However, i get "MyPrincipal ClasNotFoundExcpetion". Obviously, MyPrincipal class can not be deployed with my application. I tried creating jboss module like this: https://community.jboss.org/wiki/JBossAS7SecurityCustomLoginModules but it didn't work.


      I need to say that this isn't web app but remote JavaFX client. I guess i would also need custom Callbacks?


      Does anybody have any suggestions?