tests/libsmb_samba_internal.py: fully setup the Credentials by creds.guess(lp)
authorStefan Metzmacher <metze@samba.org>
Fri, 2 Dec 2016 09:23:28 +0000 (10:23 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Dec 2016 12:46:11 +0000 (13:46 +0100)
It's important that we correctly initialize domain and realm.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/tests/libsmb_samba_internal.py

index fe9f197a2c2027c2927da4c439ed42bb69f95a98..d883dae2fd74e3595a5044412ccc152cbb57fa49 100644 (file)
@@ -54,6 +54,7 @@ class LibsmbTestCase(samba.tests.TestCase):
         lp.load(os.getenv("SMB_CONF_PATH"))
 
         creds = credentials.Credentials()
+        creds.guess(lp)
         creds.set_username(os.getenv("USERNAME"))
         creds.set_password(os.getenv("PASSWORD"))