mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r9899: Be more conservative about what is sent to the remote server in ldb_map.
(This used to be commit 76e943d441
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
6ff97621fa
commit
e2e2508b58
@ -541,11 +541,6 @@ function upgrade(subobj, samba3, message, paths)
|
||||
// Enable samba3sam module if original passdb backend was ldap
|
||||
if (ldapurl != undefined) {
|
||||
message("Enabling Samba3 LDAP mappings for SAM database\n");
|
||||
var ldif = sprintf("
|
||||
dn: @MAP=samba3sam
|
||||
@MAP_URL: %s", ldapurl);
|
||||
ok = samdb.add(ldif);
|
||||
assert(ok);
|
||||
|
||||
ok = samdb.modify("
|
||||
dn: @MODULES
|
||||
@ -557,6 +552,12 @@ replace: @LIST
|
||||
message("Error enabling samba3sam module: " + samdb.errstring() + "\n");
|
||||
ret = ret + 1;
|
||||
}
|
||||
|
||||
ok = samdb.add(sprintf("
|
||||
dn: @MAP=samba3sam
|
||||
@MAP_URL: %s", ldapurl));
|
||||
assert(ok);
|
||||
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user