0 Replies Latest reply on Feb 10, 2002 1:57 PM by emptybell

    LoginContext, auth.conf and getCallerPrincipal not working

    emptybell

       

      "emptybell" wrote:
      Hi guys,

      Please help.

      I'm doing this:

      UsernamePasswordHandler uph = new UsernamePasswordHandler( "me", "password".toCharArray() );
      LoginContext lc = new LoginContext( "client-login", uph );

      on the client side, providing the default jboss auth.conf to prevent it from barfing.

      However, EJBContext.getCallerPrincipal() in the session bean returns null. What's the missing link?

      Thanks for any help.

      M