summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-04-08 22:59:16 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-04-08 23:22:55 +0200
commit6510b2cdd21c473bd146b7630d69d06342801cb1 (patch)
treecfa6db5fce35bc5d86467e98fbcdf43cc5cd939a /source4/scripting
parent814e20e7da60f0ec33dfea1d4d6dda1b653b818d (diff)
downloadsamba-6510b2cdd21c473bd146b7630d69d06342801cb1.tar.gz
samba-6510b2cdd21c473bd146b7630d69d06342801cb1.tar.bz2
samba-6510b2cdd21c473bd146b7630d69d06342801cb1.zip
s4-net: Use new Net() object in net export keytab.
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/export.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/export.py b/source4/scripting/python/samba/netcmd/export.py
index 8e5fd2b6e2..90b83689dd 100644
--- a/source4/scripting/python/samba/netcmd/export.py
+++ b/source4/scripting/python/samba/netcmd/export.py
@@ -20,7 +20,7 @@
import samba.getopt as options
-from samba import net
+from samba.net import Net
from samba.netcmd import (
Command,
@@ -45,7 +45,7 @@ class cmd_export_keytab(Command):
def run(self, keytab, credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp)
- # FIXME: Obtain net context
+ net = Net(creds, lp)
net.export_keytab(keytab=keytab, creds=creds)