2 Replies Latest reply on Nov 7, 2007 3:45 PM by whafrog

    How to get security domain info?

    whafrog Newbie

      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