LDAP authentication to HTTP Security Realm in JBoss EAP 6
By Jesse Morgan
So, you want to tie your jboss EAP 6 management interface into LDAP? Here’s how. This is for EAP 6 in Domain mode tying to an OpenLDAP server, but it should work for Standalone mode as well (I guess, I have no idea for sure).
Open up your jboss-eap/domain/configuration/host.xml and
- Add a new security realm: ```
- In the same <management> block as <security-realms>, add ```
- and in your management-interfaces, change the realm from ManagementRealm to LDAPRealm: ```
and restart EAP. Some caveats:
- JBoss is derpy and does not provide a way to anonymously bind for authentication, meaning the search-dn and search-credential are REQUIRED and you need to set up an inetOrgPerson or something to authenticate. It chokes if you leave either or both fields blank.
- This replaces the ManagementRealm that was previously used but does not remove it. If you lock yourself out, you can just revert step 3 to go back to using your hard-coded users.
- Note the lack of TLS being mentioned. Does that mean it’s plaintext? it didn’t complain that my cert was self signed, so that’s entirely likely. Perhaps you can use a ldaps:// url and use the older ssl method if you have it set up. Very poor form in either case.
Let me know if this was any help.