1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

s4:upgrade_from_s3 - restore "get_testparm_var" method

This has accidentally been removed by commit 8268c2d4e2.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Matthias Dieter Wallnöfer 2011-09-12 20:57:10 +02:00 committed by Andrew Bartlett
parent 924b2d5b7f
commit 4e87a8419c

View File

@ -54,7 +54,10 @@ from samba.dsdb import (
DS_DOMAIN_FUNCTION_2008_R2,
)
def get_testparm_var(testparm, varname):
cmd = "%s -s -l --parameter-name='%s' 2>/dev/null" % (testparm, varname)
output = os.popen(cmd, 'r').readline()
return output.strip()
class cmd_domain_export_keytab(Command):
"""Dumps kerberos keys of the domain into a keytab"""