Re: Custom JAAS LoginModule: Principal with empty name provided

2008-09-04 Thread Dain Sundstrom
IIRC, OpenEJB performs a single fake login after installing the security service in an effort to cause the login module to initialize early. The security service performs this in a try catch that ignores any exceptions. -dain On Sep 3, 2008, at 6:46 AM, Martin Vysny wrote: Hello guys,

Re: Custom JAAS LoginModule: Principal with empty name provided

2008-09-04 Thread David Blevins
That's pretty much right. The exact code looks like this: try { // Perform a login attempt (which should fail) // simply to excercise the initialize code of any // LoginModules that are configured. // They should have a chance to perform

Custom JAAS LoginModule: Principal with empty name provided

2008-09-03 Thread Martin Vysny
Hello guys, we tried to supply our custom JAAS LoginModule to OpenEJB. It works beautifully, I have just one question. When the OpenEJB is created (using the new InitialContext(properties) construct), it invokes this LoginModule and the handler supplies an empty string as an username in