On 18/05/2010 10:51, Neville Peter wrote:
> I need to login programmatically, but continue to support getRemoteUser().
> 
> I have written a csutom JAAS login module (no callbackhandler required) and 
> this can be seen to run when I programmatically logon within my filter 
> servlet using: 
> LoginContext lc = new LoginContext("MyJAASAccess",subject);
> lc.login();
> 
> I've done all the configuration and am happy the login module is in use. 
> 
> For example, 
> 
> jaas.config:
> 
> MyJAASAccess {
>       nhs.cfh.ssd.security.jaas.TomcatLoginModule optional debug=true;
> };
> 
> I also add the role and userid to the subject as principals in the login 
> module. However, calls to HTTPServletRequest.getRemoteUser() 
> always return null.
> What do I need to do make JAAS work with getRemoteUser()?

Why is a callbackhandler not required?


p


> Thanks,
> Peter
> 
> 
> Tomcat version 6.0.20
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to