diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 13:15:09 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 13:15:09 +0200 |
commit | 8f383fc5c8ca7190c719e58473d609cf9dce9444 (patch) | |
tree | 554ae00f1869d442baec21ccdb7dc0980062a52a /source4/scripting/bin/get-descriptors | |
parent | 1e35ec43f2dcf08446bdeb62aa6a03827666b154 (diff) | |
download | samba-8f383fc5c8ca7190c719e58473d609cf9dce9444.tar.gz samba-8f383fc5c8ca7190c719e58473d609cf9dce9444.tar.bz2 samba-8f383fc5c8ca7190c719e58473d609cf9dce9444.zip |
s4-python: Remove more unused imports, fix use of sets in upgradehelpers.
Diffstat (limited to 'source4/scripting/bin/get-descriptors')
-rwxr-xr-x | source4/scripting/bin/get-descriptors | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/scripting/bin/get-descriptors b/source4/scripting/bin/get-descriptors index 65be2fee6c..73295b0c38 100755 --- a/source4/scripting/bin/get-descriptors +++ b/source4/scripting/bin/get-descriptors @@ -27,24 +27,20 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -import getopt import optparse import sys -import os import base64 -import re sys.path.insert(0, "bin/python") import samba from samba.auth import system_session import samba.getopt as options -from samba import param from samba.ndr import ndr_pack, ndr_unpack from samba.dcerpc import security from samba import Ldb from samba.samdb import SamDB -from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE, LdbError +from ldb import SCOPE_SUBTREE, SCOPE_BASE parser = optparse.OptionParser("get-descriptor [options]") sambaopts = options.SambaOptions(parser) @@ -65,6 +61,7 @@ creds = credopts.get_credentials(lp) opts = parser.parse_args()[0] class DescrGetter: + def __init__(self, localdomain, remotedomain): self.samdb = SamDB(session_info=system_session(), lp=lp, options=["modules:paged_searches"]) self.remote_ldb= Ldb("ldap://" + opts.host + ":389", credentials=creds, lp=lp, |