It's nicer to have slapd_flags after slapd_enable in rc.conf on freebsd.
This already takes care of setting up the base DN and managing it as well as allowing for settings for the listener URLS. The type was also made a singleton as it doesn't make much sense to setup multiple LDAP servers on the same machine.
Originally developed at ungleich and improved for Open Sourcing by Evilham.