I use this to run a slapd instance for testing schemata, searched, etc. during development.
mkdir -p schema
cp /etc/ldap/schema/{core,cosine,inetorgperson}.schema schema/
If you're working on a schema possibly add it to slapd.conf
and link it into place:
ln -s ../../dev.schema schema/dev.schema
Then you can run server.sh
to run a LDAP server on ldap://127.0.0.1:10389
.