Integrating OpenLDAP With Camunda Distribution in Windows
Look at OpenLDAP and its integration with Camunda using Camunda Distribution in Windows to take your projects to new levels.
Join the DZone community and get the full member experience.Join For Free
In this article, we'll see a working example of OpenLDAP and its integration with Camunda using Camunda Distribution so that you can easily check it in your local setup and, then, use these concepts to take it further to higher environments in your project.
To test OpenLDAP integration with Camunda in your local windows machine, you need to have the tools/software below, which we will be using for our use case.
- Open LDAP for Windows
- Apache Directory Studio (ApacheDS)
- Camunda Wildfly Distribution (download here)
- Java 8+
Download OpenLDAP for Windows from this link. Click on the
.exe file to install. OpenLDAP provides five different database options:
- BDB (Berkley Database)
- MDB (Memory-mapped Database)
- LDAP (a proxy ahead of actual LDAP server)
- LDIF (use of LDIF files)
- SQL Server
For this exercise, choose BDB while installing OpenLDAP. Note to remember the password and hostname that you set while installing and make sure the service is running on your machine.
Configuring User Directory Using Apache Directory Studio
Download Apache Directory Studio using this link, and install it on your machine. Open it, and follow the below steps to complete the configuration.
- Open Apache DS. Click LDAP > New Connection. Enter the connection name of your choice along with Hostname the same as entered while installation of OpenLDAP.
- Enter user as "cn=Manager,dc=maxcrc,dc=com" and password" the same as given while the installation of Open LDAP".
- With this, the connection is set up. Next is to try to create users using Apache Directory Studio. The connection will look as below:
- Right-click on "ou=people" and select the option New Entry > Next > select "inetOrgPerson" > Next.
- Next is to create a common name where we can add multiple users. For this, select RDN: as cn, and give some value to it (for this example, "Reviewer"). Then, click on Next and Finish. If any other value needs to be added, feel free to add for this.
- To add users in cn=reviewer, repeat steps 4 and 5, and choose RDN as uid, and provide value to it.
You can add other values to it such as mail, mobile, userPassword, etc. by clicking the + symbol ahead of RDN.
Now, you have created a user in OpenLDAP that can be used to connect to the Camunda Application.
Integrating the Camunda Application With Open LDAP
If you are using Camunda distribution, open settings.xml/ domain.xml as per the selected server of the distribution. In this case, I have Camunda-Wildfly distribution. For this, standalone.xml is the appropriate file where we have to put the settings for LDAP. Add the below snippet in the standalone.xml.
Start the server using the "start-camunda.bat" file, and use the given username/password to login into Camunda web apps (http://localhost:8080/app/welcome), using the same as given in OpenLDAP while configuring user.
Opinions expressed by DZone contributors are their own.