Skip to content

Instantly share code, notes, and snippets.

@hasalex
Last active December 18, 2015 20:48
Show Gist options
  • Save hasalex/5842518 to your computer and use it in GitHub Desktop.
Save hasalex/5842518 to your computer and use it in GitHub Desktop.
LDAP security domain in WildFly 8 with OpenDJ Works in JBoss AS 7, as well
<security-domain name="swmsg-ldap" cache-type="default">
<authentication>
<login-module code="LdapExtended" flag="required">
<module-option name="java.naming.provider.url" value="ldap://127.0.0.1:1389/"/>
<module-option name="bindDN" value="cn=Sewatech"/>
<module-option name="bindCredential" value="aa"/>
<module-option name="baseCtxDN" value="ou=people,dc=sewatech,dc=fr"/>
<module-option name="baseFilter" value="(uid={0})"/>
<module-option name="rolesCtxDN" value="ou=groups,dc=sewatech,dc=fr"/>
<module-option name="roleFilter" value="(uniqueMember={1})"/>
<module-option name="roleAttributeID" value="cn"/>
</login-module>
</authentication>
</security-domain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment