1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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 <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-11-09 11:25:51 +01:00 committed by Jeremy Allison
parent c3d65f10c5
commit b7fd2cf5ba

View 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"))