[jboss-user] [Security & JAAS/JBoss] - Re: JBOSS LDAP Authentification

indra_joy do-not-reply at jboss.com
Mon Jul 28 12:37:12 EDT 2008


I m using LdapLogin Module and Parameters are also pretty standard as below

<application-policy name="testLDAP">
    
        <login-module code="org.jboss.security.auth.spi.LdapLoginModule"
                      flag="required">
            <module-option name="java.naming.factory.initial">
                com.sun.jndi.ldap.LdapCtxFactory
            </module-option>
            <module-option name="java.naming.provider.url">
                ldap://ldaphost.exampledc=example.com:1389/
            </module-option>
            <module-option name="java.naming.security.authentication">
                simple
            </module-option>
            <module-option name="principalDNPrefix">uid=</module-option>
            <module-option name="principalDNSuffix">
                ,ou=People,dc=example,dc=com
            </module-option>

            <module-option name="rolesCtxDN">
                ou=Roles,dc=example,dc=com
            </module-option>
            <module-option name="uidAttributeID">member</module-option>
            <module-option name="matchOnUserDN">true</module-option>

            <module-option name="roleAttributeID">cn</module-option>
            <module-option name="roleAttributeIsDN">false </module-option>
        </login-module>
    
</application-policy>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167120#4167120

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167120



More information about the jboss-user mailing list