0 Replies Latest reply on Dec 10, 2003 10:15 AM by smog

    form athentication method

    smog

      Hi all, i am trying in struts action to set the appropriate
      role for user who is logging by html form with two fields
      "username" and "password".

      After i got the AuthenticationManager from directory service,
      and checked users credentials everything is ok.

      Propagating Subject to Web Container:

      SecurityAssociation.setPrincipal(principal);
      SecurityAssociation.setCredential(password.toCharArray());
      


      When on the next jsp page or servlet i'm calling

      request.getUserPrincipal();


      the function returns null.

      I have seen some similar questions in this forum
      but there are no answers, thats way i'am asking again.

      I am using jboss 3.2.1 + struts 1.1