Installation
- We need to install the ldap packages
apt-get install slapd ldap-utils migrationtools
- Answer the questions and then use dpkg to reconfigure slapd for more options
dpkg-reconfigure slapd
Omit OpenLDAP server configuration? ... No DNS domain name: ... home.local Name of your organization: ... home Admin Password: some-really-strong-password Confirm Password: some-really-strong-password OK BDB Do you want your database to be removed when slapd is purged? ... No Move old database? ... Yes Allow LDAPv2 Protocol? ... No
- Check that the ldap server is now running
ldapsearch -x -b dc=home,dc=local
If you get this error
ldap_bind: Can't contact LDAP server (-1)
Its likely the daemon isn't running so start it
/etc/init.d/slapd start
Populating the Database
cd /usr/share/migrationtools/
nano migrate_common.ph
and replace the following
DEFAULT_MAIL_DOMAIN = "home.local"; DEFAULT_BASE = "dc=home,dc=local";
./migrate_group.pl /etc/group /tmp/group.ldif ./migrate_passwd.pl /etc/passwd /tmp/passwd.ldif
nano /tmp/nodes.ldif
and paste in the following
dn: ou=People, dc=home, dc=local ou: People objectclass: organizationalUnit dn: ou=Group, dc=home, dc=local ou: Group objectclass: organizationalUnit
ldapadd -x -W -D "cn=admin,dc=home,dc=local" -f /tmp/nodes.ldif ldapadd -x -W -D "cn=admin,dc=home,dc=local" -f /tmp/group.ldif ldapadd -x -W -D "cn=admin,dc=home,dc=local" -f /tmp/passwd.ldif
That is your LDAP server setup In this tutorial it will show you how to configure your LDAP Clients


This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.