Skip to content

Identity Management - REST API using Spring to manage users on LDAP

Notifications You must be signed in to change notification settings

callFunction/user-admin-ldap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Users and Groups in LDAP

Users in LDAP are usually represented as organizationalPerson or inetOrgPerson entries in the LDAP tree. The attributes in these entries represent the basic information on the users, e.g. (subset of available attributes):

  • cn: Common Name, or full name of the user
  • sn: Surname
  • mail: Email address
  • telephoneNumber: Phone number
  • ...several more attributes are available

Groups in LDAP are typically organized in groupOfName or groupOfUniqueName entries. These entries have a name, an optional description, and an attribute containing the distinguished names (i.e. the unique identifiers) of all members of the group. This attribute is named member and uniqueMember respectively.

Thus, user administration in LDAP typically involves creating and manipulating orgalizationalPerson or inetOrgPerson entries and adding or removing references to these entries in groupOfName or groupOfUniqueName entries.

This application demonstrates to do this easily and efficiently using Spring LDAP.

Apache Directory Server

For testing, download the ApacheDS Studio, which would allow to launch a embedded ApacheDS. Update the ldap.properties to match the embedded ldap.

Sample setup_data.ldif can be imported into LDAP to help in testing.

Build Instructions

mvn clean install

Deploy the war in a Application Container & test using the swagger UI at http://localhost:8080/user-admin-ldap/swagger-ui.html

About

Identity Management - REST API using Spring to manage users on LDAP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages