

You can add entries one at a time or you can create a text file for which ldapadd will read from. The ldapadd command can be used in a couple of ways.

I will also assume you have LDAP up and running and you are now ready to begin adding entries. I am also going to be running the commands on the server that contains the LDAP directory (again for the sake of simplicity). Your network, of course, will be different. That base dn will be used for nearly every LDAP command on my network. The network is wallen.local so the base dn of this network will look like “dc=wallen,dc=local”. They may be, at first, a challenge to understand, but once you get the basics they are as simple as any other Linux command.įor the sake of simplicity I am going to use my own, small network as an example. In order to successfully manage your LDAP data from the command line you need to be familiar with three commands: ldapadd, ldapmodify, and ldapsearch. The LDAP command line can be a bit frightening at first, but once you get to know it it’s not all that bad. Whether it is a simple search or adding/deleting/modifying an entry - the time is coming, and when it does you better be ready for it. Eventually, however, you may need to manage your LDAP data from the command line. Recently I wrote an article about a GUI tool that can help the new user get LDAP up and running on their server (see my article “ Simplify LDAP with Fedora’s 389 Directory Server“).

You can get started managing LDAP from the command line on Linux with three simple commands. Managing an LDAP server can be intimidating, but it’s not as difficult as it seems at first glance.
