--On Wednesday, August 07, 2019 3:43 PM +0000 Dominique Fuchs d.fuchs91@icloud.com wrote:
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?
If the database is empty, something like (as the root user):
ldapmodify -Y EXTERNAL -H ldapi:/// dn: olcDatabase={#}mdb,cn=config changetype: modify replace: olcSuffix olcSuffix: dc=ldap,dc=foo,dc=bar
But you'll need to know the database weight value.
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com