Spring 5.0 Projects by Nilang Patel

Spring 5.0 Projects by Nilang Patel

Author:Nilang Patel [Nilang Patel]
Language: eng
Format: epub
Publisher: Packt
Published: 2019-02-28T18:36:18+00:00


Creating roles in the LDAP server

As you saw in the previous section, we have created the users entity (ou=users) under the root entity (o=packtPublisher), and have kept all users under that entity in the LDAP server. Similarly, to store authorization information, we will create a new entity directly under the root entity in Apache DS, with the following steps:

Right-click on the partition o=packtPublisher and select New | New Entry from the LDAP Browser window.

Choose the option Create entry from scratch and click on the Next button.

We are going to add an entity type organization unit, so choose the organizationalUnit object class and click on the Next button.

We will use ou (organizational unit) as the RDN and roles as its value. The DN is automatically calculated when we give the value of the RDN. You can use more than one attribute (or the same attribute multiple times, with different values) for the RDN. The DN will then be calculated by appending each of them with a comma.

Click on the Next button, followed by the Finish button, and the entry ou=roles will be added under o=packtPublisher. The updated structure will be visible in the LDAP Browser window.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.