[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Antw: How to change BaseDN? (OpenLDAP/slapd)
>>> Dominique Fuchs <d.fuchs91@icloud.com> schrieb am 07.08.2019 um 16:43 in
Nachricht <b63b9723-ad57-49e6-ae37-1cc63ace6f74@me.com>:
> Hi everyone,
>
>
>
> I'm actually stuck trying to set up an OpenLDAP implementation on my server
> running debian/slapd. Based on the hostname of the server (server.foo.bar)
> slapd automatically sets up the base config with dc=foo,dc=bar as BaseDN.
> This runs fine and I can connect successfully. However, I actually want the
> BaseDN for the LDAP structure to rely on the subdomain ldap.foo.bar
> (dc=ldap,dc=foo,dc=bar). How can I accomplish this?
>
>
>
> I already tried to fiddle around with ldapmodify/ldif-files, but the only
> thing I found online where descriptions of how to add a node, not how to
> change the root node.
Export the database, delete the database, edit the exported database, and then re-import the modified database?
>
>
>
> This post on SO:
>
> https://stackoverflow.com/questions/19537319/change-basedn-in-openldap
> only explains how to rename an existing setup (and even there I can't
> imagine there isn't a more native way of changing the BaseDN).
>
>
>
> Thanks in advance!