Add Group to LDAP command line

Add Group to LDAP command line

Add Group to LDAP command line

If you have made it this far with LDAP, you have a basic user added, but need to start taking advantages of groups. Here’s the basic process to add a group to LDAP.

login, and su root

OpenLDAP add group: login, and su root

from here change to /tmp

OpenLDAP add group: change to /tmp

make a dump of the LDAP Database

OpenLDAP add group: make a dump of the LDAP Database

create a file for the new group you are going to add, let’s go with Finance

OpenLDAP add group: create a file for the new group you are going to add, let’s go with Finance

and edit the Finance Template

OpenLDAP add group: and edit the Finance Template

it shoudl be setup as follows (gid must be unique for each group)

OpenLDAP add group: it shoudl be setup as follows (gid must be unique for each group)

type this command to add the file to the database

OpenLDAP add group: type this command to add the file to the database

now the finance group has been added to the database

OpenLDAP add group: the finance group has been added to the database

That’s it, you added a new group to the LDAP Database!

Hosted Linux Servers at www.zwiegnet.com/go

Related guides: Add user to a group OpenLDAP command line | Add User to LDAP command line

Leave a Reply

Your email address will not be published. Required fields are marked *