This content has been marked as final.
Show 1 reply
-
1. Re: LdapLoginModule should be more Flexible
jwkaltz Jan 28, 2002 6:13 AM (in response to swatkat)If your authorization is based on simple username/password, then it's really easy to write your own "LdapLoginModule" (or whatever). All you need to do is subclass org.jboss.security.auth.spi.UsernamePasswordLoginModule
and provide an implementation for
protected String getUsersPassword() throws LoginException
and
protected Group[] getRoleSets() throws LoginException
You will find examples of this in the JBoss source code or in the JBossSX documentation.
The only tricky thing (in my opinion) is that you need to define your login module in your auth.conf as follows:
org.jboss.security.auth.spi.ProxyLoginModule required
moduleName=com.whatever.MyLoginModule