TurnKey Linux Virtual Appliance Library

NEWBIE: change OpenLDAP DC from example.com to mycompany.com

adamdoesit's picture

Hi all,

I have reasonable experience with LDAP, and a little with OpenLDAP's implementation, but I'm new to TKL.

I'm having trouble changing the DC in the TLK OpenLDAP appliance from example.com to my company's domain name (from now on, mycompany.com) through phpLDAPadmin.

Using the Rename link for the DC object (cmd=rename_form&server_id=1&dn=dc%3Dexample%2Cdc%3Dcom&template=none) gets:



You cannot rename an entry which has children entries (eg, the rename operation is not allowed on non-leaf entries)

I've also tried importing a new LDIFF with my company's information in it, but phpLDAPadmin throws a series of errors there, too.

If there's a document that covers setting up the TKL OpenLDAP appliace for a live domain, I haven't found it.

I'd appreciate it if you could point me in the right direction.



Alon Swartz's picture

The domain should have been set on firstboot...

The domain should have been set on firstboot via inithooks. You can re-run the inithooks using turnkey-init or the openldap inithooks directly:


Note that 40openldap with re-initialize openldap, and you will loose any customizations you've already made.

Hope the above helps.

adamdoesit's picture

thank you

Thanks, Alon. That did the job.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)