Hi, I have my security domain information in jboss-web.xml:
<security-domain>java:/jaas/ldap-security</security-domain>
And the application policy set up in login-config.xml:
<application-policy name="ldap-security">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule"
flag="required" >
| <module-option
name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
| <module-option
name="java.naming.provider.url">ldap://someurl:389/</module-option>
| ...etc...
| </login-module>
| </authentication>
| </application-policy>
Unfortunately our ldap setup isn't that friendly and I need to requery the ldap server
in code to get additional information. We have a custom .jar that been in production use
since jdk1.3, and all I need to do is pass it the provider URL. I thought it would be
simplest to get it from the application policy. Is there a way I can get that information
in code? I'm using Seam to trigger an authenticator class.
Thanks,
Jon
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102637#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...