1
0
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:
Jelmer Vernooij
2005-09-01 15:33:31 +00:00
committed by Gerald (Jerry) Carter
parent 6ff97621fa
commit e2e2508b58
6 changed files with 438 additions and 222 deletions

View File

@ -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;