1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4-python: Remove not used imports

This commit is contained in:
Matthieu Patou
2011-04-23 13:47:27 +04:00
committed by Matthieu Patou
parent 6071ed67bf
commit 22a638b616
2 changed files with 4 additions and 7 deletions

View File

@ -48,15 +48,13 @@ from samba.dsdb import DS_DOMAIN_FUNCTION_2000
from samba import ( from samba import (
Ldb, Ldb,
check_all_substituted, check_all_substituted,
in_source_tree,
source_tree_topdir,
read_and_sub_file, read_and_sub_file,
setup_file, setup_file,
substitute_var, substitute_var,
valid_netbios_name, valid_netbios_name,
version, version,
) )
from samba.dcerpc import security from samba.dcerpc import security, misc
from samba.dcerpc.misc import ( from samba.dcerpc.misc import (
SEC_CHAN_BDC, SEC_CHAN_BDC,
SEC_CHAN_WKSTA, SEC_CHAN_WKSTA,
@ -284,7 +282,7 @@ def find_provision_key_parameters(samdb, secretsdb, idmapdb, paths, smbconf, lp)
# invocation id/objectguid # invocation id/objectguid
res5 = samdb.search(expression="(objectClass=*)", res5 = samdb.search(expression="(objectClass=*)",
base="CN=NTDS Settings,%s" % str(names.serverdn), scope=SCOPE_BASE, base="CN=NTDS Settings,%s" % str(names.serverdn), scope=ldb.SCOPE_BASE,
attrs=["invocationID", "objectGUID"]) attrs=["invocationID", "objectGUID"])
names.invocation = str(ndr_unpack(misc.GUID, res5[0]["invocationId"][0])) names.invocation = str(ndr_unpack(misc.GUID, res5[0]["invocationId"][0]))
names.ntdsguid = str(ndr_unpack(misc.GUID, res5[0]["objectGUID"][0])) names.ntdsguid = str(ndr_unpack(misc.GUID, res5[0]["objectGUID"][0]))

View File

@ -31,13 +31,12 @@ import samba
from samba import Ldb, version, ntacls from samba import Ldb, version, ntacls
from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE
import ldb import ldb
from samba.provision import (ProvisionNames, provision_paths_from_lp, from samba.provision import (provision_paths_from_lp,
getpolicypath, set_gpos_acl, create_gpo_struct, getpolicypath, set_gpos_acl, create_gpo_struct,
FILL_FULL, provision, ProvisioningError, FILL_FULL, provision, ProvisioningError,
setsysvolacl, secretsdb_self_join) setsysvolacl, secretsdb_self_join)
from samba.dcerpc import misc, security, xattr from samba.dcerpc import xattr
from samba.dcerpc.misc import SEC_CHAN_BDC from samba.dcerpc.misc import SEC_CHAN_BDC
from samba.ndr import ndr_unpack
from samba.samdb import SamDB from samba.samdb import SamDB
# All the ldb related to registry are commented because the path for them is # All the ldb related to registry are commented because the path for them is