A much smarter option is to use phpLDAPadmin, which is an LDAP
administration tool that enables you to add and modify entries entirely
through your web browser. The program is available in the Ubuntu software
repositories as phpldapadmin.
Starting, stopping, or restarting the slapd daemon is done in the usual way
for system daemons that do not yet have Upstart methods written for them:
Click here to view code image
sudo /etc/init.d/slapd start/stop/restart
References
http://www.openldap.org—The home page of the OpenLDAP project, where
you can download the latest version of the software and meet other users
http://ldap.perl.org—The home of the Perl library for interacting with
LDAP, which provides comprehensive documentation to get you started
https://help.ubuntu.com/lts/serverguide/openldap-server.html
—Official Ubuntu Server documentation for OpenLDAP
http://phpldapadmin.sourceforge.net—The official documentation for
phpLDAPadmin
LDAP System Administration by Gerald Carter—The definitive book
on LDAP and an absolute must for the bookshelf of any Linux LDAP
administrator
LDAP Directories Explained by Brian Arkills—More general reading,
with a much stronger focus on the Microsoft Active Directory LDAP
implementation