summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-10-13 22:24:50 +0200
committerJelmer Vernooij <jelmer@samba.org>2011-10-14 00:22:56 +0200
commit60de9b7bbf991291baa361a48c63f3b47402c719 (patch)
treeeb2801736fe72ea547b3cb283b33277e7884836c
parent36e3c15f54f1afdde662e45f11ae4b819fbad504 (diff)
downloadsamba-60de9b7bbf991291baa361a48c63f3b47402c719.tar.gz
samba-60de9b7bbf991291baa361a48c63f3b47402c719.tar.bz2
samba-60de9b7bbf991291baa361a48c63f3b47402c719.zip
creds: Remove unnecessary calls to credopts.get_credentials.
-rw-r--r--source4/scripting/python/samba/netcmd/ntacl.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/ntacl.py b/source4/scripting/python/samba/netcmd/ntacl.py
index 1948309ca8..42187493b8 100644
--- a/source4/scripting/python/samba/netcmd/ntacl.py
+++ b/source4/scripting/python/samba/netcmd/ntacl.py
@@ -55,7 +55,6 @@ class cmd_ntacl_set(Command):
def run(self, acl, file, quiet=False,xattr_backend=None,eadb_file=None,
credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm()
- creds = credopts.get_credentials(lp)
path = os.path.join(lp.get("private dir"), lp.get("secrets database") or "secrets.ldb")
creds = credopts.get_credentials(lp)
creds.set_kerberos_state(DONT_USE_KERBEROS)
@@ -92,7 +91,6 @@ class cmd_ntacl_get(Command):
def run(self, file, as_sddl=False, xattr_backend=None, eadb_file=None,
credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm()
- creds = credopts.get_credentials(lp)
acl = getntacl(lp, file, xattr_backend, eadb_file)
if as_sddl:
anysid = security.dom_sid(security.SID_NT_SELF)