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());
request.getUserPrincipal();