1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-16 20:59:12 +03:00

s4-net: Use new Net() object in net export keytab.

This commit is contained in:
Jelmer Vernooij
2010-04-08 22:59:16 +02:00
parent 814e20e7da
commit 6510b2cdd2
3 changed files with 10 additions and 6 deletions

View File

@ -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)