]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Add "DOMAIN" to authentication creds
authorVolker Lendecke <vl@samba.org>
Wed, 9 Nov 2022 10:25:51 +0000 (11:25 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 22 Nov 2022 18:27:33 +0000 (18:27 +0000)
If you want to create symlinks on Windows using reparse points, you
need to authenticate as local administrator, just "administrator" is
not enough. So this is required to run some tests against Windows.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/libsmb.py

index 678ae00d2c92eacc55a32d9e71dbd8119665bea4..85068b1caec6cbbe7c823f83f3e328340e0fb034 100644 (file)
@@ -32,6 +32,7 @@ class LibsmbTests(samba.tests.TestCase):
 
         self.creds = credentials.Credentials()
         self.creds.guess(self.lp)
+        self.creds.set_domain(samba.tests.env_get_var_value("DOMAIN"))
         self.creds.set_username(samba.tests.env_get_var_value("USERNAME"))
         self.creds.set_password(samba.tests.env_get_var_value("PASSWORD"))