Recently, I thought of upgrading various softwares on my MAC OS including Java, AnypointStudio and all other softwares. So, I downloaded new version of MuleSoft Anypoint Studio on my MAC OS. Third Party Trademark Legal Notice: Mac, iMac, Macbook, OSX, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard, Tiger are trademarks of Apple Inc. It's available on Mac, Windows, and Linux, but right now we only care about the mac version. Go to the Visual Studio Code site and click Download for Mac Once downloaded, drag the application to your preffered Applications location. How to Remove Apache Directory Studio 2.0 on Mac OS X. Removals on Mac OS X are quite different from those on Microsoft Windows OS. This page can help you understand the basic knowledge of system maintenance, guiding you through the confusion of removal problems.
LDAP Users and Groups for API Authentication and Authorization
Today, API security has become one of the most important thing. It is a vast field with many approaches and meanings. Most commonly, people refer API security as Authentication and Authorization. Encryption can also be included in this space, but lets keep that aside for separate discussion. For this article, lets just focus on how to use LDAP for API Authentication and Authorization. There are many frameworks like Spring, etc. which can be used to connect your application with LDAP for Authentication. LDAP does not handle Authorization piece but it can return 'Groups' and based on that you application can either authorize or deny the request.
In this article, we will see following:
How to create a user in LDAP
How to create a group in LDAP
How to assign user to the group in LDAP
Refer this link if you wish to setup OpenLDAP on your MAC. I had used JXplorer before but for this article I am going to use ApacheDirectory Studio. Moreover, I am going to use ApacheDS 2.0.0 LDAP Server. Note that all the following points mentioned above are same for OpenLDAP or any other LDAP server.
Create New LDAP Server
Go to LDAP Servers tab >> Right Click >> New >> New Server
Now select ApacheDS 2.0.0 LDAP Server and click Finish.
Once the server is created, the state of the server will be 'Stopped'.
Right click on the server and click 'Run' to stat the server.
Create Connection
Make sure the server is up and running and the state is 'Started'.
Right click on the server and click on 'Create a Connection'.
The connection will be created and alert message will be displayed.
Create Organization Units
Click on 'Root DSE'
Right click on 'dc=example,dc=com'
Select 'New'
Click on 'New Entry'
Select 'Create entry from scratch' and click 'Next'
Type and select 'organizationalUnit' object class
Click on 'Add' button and then click on 'Next'
Type 'ou' for 'RDN'
Type value as 'Groups' and then click 'Next'
Click on 'Finish'
Organizational Unit: Groups has been created
Follow same approach to create Organizational Unit: Users
Apache Directory Studio Mac Java 8
Create Users
Select 'ou=Users' and right click
Select 'New Entry'
Select 'Create entry from scratch' and click 'Next'
Type and select 'inetOrgPerson' and click 'Add' and then click 'Next'
Select RDN as 'cn' and value as 'sample_usr_1' and click 'Next'
Enter 'sn' as 'sample_usr_1'
Right click on the window and select 'New Attribute'
Select 'uid' and set value as 'sample_usr_1'
Right click on the window and select 'New Attribute'
Select 'userPassword' and click 'Finish'
On the next window, setup the password for the user
Click 'Finish'
User 'dn: cn=sample_usr_1,ou=Users,dc=example,dc=com' has been created.
Follow same approach to create some more users
Create Group
Select 'ou=Groups' and right click
Select 'New Entry'
Select 'Create entry from scratch' option and click 'Next'
Select 'groupOfUniqueNames'
Click on 'Add' and then click 'Next'
Enter RDN as 'ou' and value as 'SAMPLE_GRP'
Click 'Next'
Type value for 'cn' as 'SAMPLE_GRP'
You will be asked to enter 'uniqueMember'
Provide value as 'cn=sample_usr_1,ou=Users,dc=example,dc=com' (or any other user).
Click 'Finish'
User 'sample_usr_1' has been added to the group
Follow same approach to add more users to the group
Now, you have everything to implement LDAP Authentication and Authorization in your application. P.S. Click here to access my other posts.
I was using Apache Directory Studio for past few months without any issues, but yesterday all of a sudden I was getting below error while I was attempting to launch Apache Directory Studio application on my MAC. Note that I am using Apache Directory Studio version 2.0.0.v20130628
Apache Directory Studio Download
I open the log file to check the error message, it was so confusing. Error message was something like this:
Root Cause:
I recently installed latest Java version i.e. Java 9 on my MAC and I encountered this issue due to the Java version upgrade. The error message in the log file is bit misleading.