Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Having this initialization ldif

dn: dc=localhost,dc=localdomain
changetype: add
objectclass: dcObject
objectclass: organization
o: My Example
dc: localhost

dn: cn=Manager,dc=localhost,dc=localdomain
changetype: add
objectclass: organizationalRole
cn: Manager
  1. How would I add a new organization beneath localdomain?
  2. How would I add a new top domain just like "localdomain"?

The complete LDIFs please.

share|improve this question
up vote 1 down vote accepted

You would add them to the LDIF file (or a separate LDIF file loaded after this one) -- See the LDIF format description for syntax & valid fields for the Organization object class.

Adding a new top-level domain is done the same way as any other object, but is administratively a bit more complex: You can do it, but it's "funky" from a view standpoint because it means a new LDAP base (your LDAP tree will have two logical "roots" - localdomain & newdomain, and you have to be aware which one you're using as the LDAP search base or you'll be in for some confusing results).

If the domains are logically part of the same organization you may want to root your directory at an Organization object & put the Domain Components under it (This is a little odd since usually you pick Domain or Organization style structuring, but it's still a valid structure. Just document the "Why" :-)

share|improve this answer


I think you're working with OpenLDAP, aren't you?

By Organisation, you mean, a new Organisational Unit or a new Top Organisation Container like *.com Organisation container?

share|improve this answer
OpenLDAP, yes. Top Organisation Container, not Organisational Unit. – Flavius A Feb 9 '10 at 21:20

Your Answer


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.