summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-03-21 12:49:46 +1100
committerStefan Metzmacher <metze@samba.org>2013-03-25 10:29:26 +0100
commite81a97dd6fc2da701f2cbf42513311a7a44adad3 (patch)
tree4a7ffdbdb132f8d35a061e932471ea4ec82d2102 /source4/scripting
parent6df17fe799968ca7e2f92ce9e294e3962ac8cbaf (diff)
downloadsamba-e81a97dd6fc2da701f2cbf42513311a7a44adad3.tar.gz
samba-e81a97dd6fc2da701f2cbf42513311a7a44adad3.tar.bz2
samba-e81a97dd6fc2da701f2cbf42513311a7a44adad3.zip
scripting: Make samba.provision.descriptor.get_wellknown_sds() return ldb.Dn objects
As we look to use this function in more places, it does not make sense to constantly create Dn objects from the strings. Andrew Bartlett Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-xsource4/scripting/bin/samba_upgradeprovision5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision
index 0ca70b583e..c6fc8f26e0 100755
--- a/source4/scripting/bin/samba_upgradeprovision
+++ b/source4/scripting/bin/samba_upgradeprovision
@@ -1211,10 +1211,9 @@ def fix_wellknown_sd(samdb, names):
list_wellknown_dns = []
- subcontainers = get_wellknown_sds(names)
+ subcontainers = get_wellknown_sds(names, samdb)
- for [strdn, descriptor_fn] in subcontainers:
- dn = Dn(samdb, strdn)
+ for [dn, descriptor_fn] in subcontainers:
list_wellknown_dns.append(dn)
if dn in dnToRecalculate:
delta = Message()