summaryrefslogtreecommitdiff
path: root/source4/torture/drs
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-07-06 16:31:15 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-07-28 00:25:14 +0200
commit47a90dcc570b24665dc116586ce13d0ffbb3a3c6 (patch)
treea28fe5017dd0f09d8f34e561daedd7698c5eee1f /source4/torture/drs
parente91782541e1e814772fa4bcfaad85d354b53a3a5 (diff)
downloadsamba-47a90dcc570b24665dc116586ce13d0ffbb3a3c6.tar.gz
selftest: Use get_creds_ccache_name() in fsmo.py
This avoids a new kinit for every role transfer Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4/torture/drs')
-rw-r--r--source4/torture/drs/python/fsmo.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/torture/drs/python/fsmo.py b/source4/torture/drs/python/fsmo.py
index 4dd652d13be..50b7dc3b2c4 100644
--- a/source4/torture/drs/python/fsmo.py
+++ b/source4/torture/drs/python/fsmo.py
@@ -58,9 +58,8 @@ class DrsFsmoTestCase(drs_base.DrsBaseTestCase):
# find out where is samba-tool command
net_cmd = os.path.abspath("./bin/samba-tool")
# make command line credentials string
- creds = self.get_credentials()
- cmd_line_auth = "-U%s/%s%%%s" % (creds.get_domain(),
- creds.get_username(), creds.get_password())
+ ccache_name = self.get_creds_ccache_name()
+ cmd_line_auth = "--krb5-ccache=%s" % ccache_name
(result, out, err) = self.runsubcmd("fsmo", "transfer",
"--role=%s" % role,
"-H", "ldap://%s:389" % DC,