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:

 

  Error

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.

Thanks,

Adam

Alon Swartz's picture

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

/usr/lib/inithooks/firstboot.d/20regen-openldap-secrets
/usr/lib/inithooks/firstboot.d/40openldap

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

Hope the above helps.

adamdoesit's picture

Thanks, Alon. That did the job.

Post new comment