How to implement LDAP authentication in a Java EE WildFly app? Are there any examples?
I'm new to Java EE and need to write an app using LDAP and I'm stuck. I read a book about developing in WildFly but there was no information about LDAP there.
How to implement LDAP authentication in a Java EE WildFly app? Are there any examples?
I'm new to Java EE and need to write an app using LDAP and I'm stuck. I read a book about developing in WildFly but there was no information about LDAP there.
The following step of operation will have to be performed for authenticating your application using LDAP (assuming that LDAP is already setup).
Creating a new security domain in
standalone.xml
file.you will have to change the values accordingly
Now you will have to add the security context in your application's web.xml. Assuming that you only want users with
user
Role to login to your application then you can add something like thisyou will have to place a
jboss-web.xml
in your WEB-INF folder with the following contentyou can find a wonderful tutorial on this subject here