This content has been marked as final.
Show 1 reply
-
1. Re: Calling jaas from an ejb
tool Aug 29, 2002 10:48 AM (in response to toddrun)I would think that you could create a new CallbackHandler in the ejb that contains the username and password, and create a new LoginContext with it and call the .login() method, all from within the ejb. As long as you have an LdapLoginModule entry in the auth.conf or login-config.xml (depending on what jboss version you are using) and import the correct classes into the ejb, I don't see any reason this shouldn't work. But then again, it might be a dumb idea or one you thought of already.
tool