Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was trying to configure the default directory tree on a clean OpenLDAP install on Ubuntu (apt-get install slapd).

I found /usr/share/slapd/slapd.conf and was going to change the suffix setting, and noticed that there is some kind of token substitution going on - @SUFFIX@ and @BACKEND@.

How do these tokens get substituted - and where are the values provided?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

slapd.conf is not being used in this case. Instead, the config (OLC) backend is being used under cn=config.

The easiest way to change the default DIT root was to re-run the configuration:

sudo dpkg-reconfigure slapd

Then answer the "domain" question differently. After clearing out the old LDAP contents and restarting slapd, I got the change from dc=nodomain to dc=whatever.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.