From: Volker Lendecke Date: Wed, 9 Nov 2022 10:25:51 +0000 (+0100) Subject: libsmb: Add "DOMAIN" to authentication creds X-Git-Tag: talloc-2.4.0~515 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7fd2cf5bae6735c4b15d058159d7278ee091baa;p=thirdparty%2Fsamba.git libsmb: Add "DOMAIN" to authentication creds 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 Reviewed-by: Jeremy Allison --- diff --git a/python/samba/tests/libsmb.py b/python/samba/tests/libsmb.py index 678ae00d2c9..85068b1caec 100644 --- a/python/samba/tests/libsmb.py +++ b/python/samba/tests/libsmb.py @@ -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"))