Skip to content
Netsoc LDAP directory
Python Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
messages
README
accountrequests.py
changetest.ldif
cmds.py
core.ldif
ldapconnect.py
ldaplogging.py
ldapobject.py
nd.py
sampledata.ldif
schema
sendmail.py
slapd.conf

README

Hacking on nd:

Install OpenLDAP
As root:
rm /etc/ldap/slapd.conf
ln -s <nd repo>/slapd.conf /etc/ldap/slapd.conf
ln -s <nd repo>/schema /etc/ldap/schema/netsoc.schema
/etc/init.d/slapd restart

To populate the database (warning: deletes whatever's there!)
ldopt="-D cn=root,dc=netsoc,dc=tcd,dc=ie -x -w foo -h 127.0.0.1"
ldapdelete $ldopt -r 'dc=netsoc,dc=tcd,dc=ie';
cat <nd repo>/{core.ldif,sampledata.ldif} |   ldapadd $ldopt

Something went wrong with that request. Please try again.