To setup a test environment:
1. Install the following packages:
sudo apt-get install slapd ldap-utils ldapscripts libnss-ldap
NB: Don't enter a root password.
2. Check out the openldap-dit project to quickly setup a default DIT:
bzr co lp:~mathiaz/openldap-dit/add-ldapscripts-files cd add-ldapscripts-files/
sudo ln -sf ~/add-ldapscripts-files /usr/share/slapd/openldap-dit
3. Install the default DIT:
sudo ./openldap-dit-setup.sh -y -d example.org -p mypwd
4. Install the ldapscripts configuration files:
sudo cp ldapscripts/* /etc/ldapscripts/
5. Add a new group:
sudo ldapaddgroup testgroup1
6. Edit nsswitch.conf to use ldap as the first provider for the group service.
7. Check that the testgroup1 is found:
getent group testgroup1
To setup a test environment:
1. Install the following packages:
sudo apt-get install slapd ldap-utils ldapscripts libnss-ldap
NB: Don't enter a root password.
2. Check out the openldap-dit project to quickly setup a default DIT:
bzr co lp:~mathiaz/openldap-dit/add-ldapscripts-files -files/
cd add-ldapscripts
sudo ln -sf ~/add-ldapscrip ts-files /usr/share/ slapd/openldap- dit
3. Install the default DIT:
sudo ./openldap- dit-setup. sh -y -d example.org -p mypwd
4. Install the ldapscripts configuration files:
sudo cp ldapscripts/* /etc/ldapscripts/
5. Add a new group:
sudo ldapaddgroup testgroup1
6. Edit nsswitch.conf to use ldap as the first provider for the group service.
7. Check that the testgroup1 is found:
getent group testgroup1