Set zimbraAuthLdapExternalDn during user creation

This commit is contained in:
Daniel Berteaud 2019-07-17 09:31:53 +02:00
parent 59a6ad13b6
commit 63b75db468
1 changed files with 2 additions and 1 deletions

View File

@ -368,6 +368,7 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) {
$attrs .= ' ' . $conf->{domains}->{$domain}->{users}->{attr_map}->{$attr} . " " .
zim_attr_value( $ext_users->{$user}->{$attr} );
}
$attrs .= " zimbraAuthLdapExternalDn " . zim_attr_value( $ext_users->{$user}->{dn} );
# The password won't be used because Zimbra is set to use external LDAP/AD auth
# But better to set it to a random value
my $pass = $uuid->create_str;