I assume I don’t know if it is possible @davidep @giacomo
When you use nethserver-dc bindDN() and baseDN() reflect the real domain name with samba4 ldap, but when you use nethserver-directory, the template expand this
$servers->newServer('ldap_pla');
$servers->setValue('server','name','Openldap Server');
$servers->setValue('server','host',"127.0.0.1");
$servers->setValue('server','port',389);
$servers->setValue('login','auth_type','cookie');
$servers->setValue('login','bind_id',"cn=ldapservice,dc=directory,dc=nh");
$servers->setValue('login','bind_pass',"QUIBVTYKdZQsN5f2");
$servers->setValue('server','tls',true);
$servers->setValue('login','attr','uid');
$servers->setValue('server','base',array("dc=directory,dc=nh"));
hence
basedn = "dc=directory,dc=nh"
bindDN = "cn=ldapservice,dc=directory,dc=nh"
I know both are good, either the real domain name, or the generic domain directory.nh, but in phpldapadmin, it is not consistent, and if you display the real domain name it looks better.