Installing CSS
From GlueXWiki
Installing LDAP
I followed the instruction from the various web sites, mainly from [1] and [].
- Install LDAP server
sudo apt-get install slapd ldap-utils
- Run the following command to add all the LDAP schemas in the slapd package to your cn=config (by default only core is added):
ls /etc/ldap/schema/*.ldif | xargs -I {} sudo ldapadd -Y EXTERNAL -H ldapi:/// -f {}
- Create a database the LDAP server. Note that Karmic uses the EXTERNAL SASL binding to communicate with the LDAP server. There is no admin user or password here:
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f db.ldif
- Add people to database we just created. Since we have created our own access control lists for the dc=home,dc=local database, we must change the binding method (i.e. auth with the admin user and password). Add the data for the directory via the following command:
sudo ldapadd -x -D cn=admin,dc=home,dc=local -w admin -f people.ldif
- Check to see if you can read the database:
ldapsearch -x -b dc=home,dc=local