diff options
| author | Andreas Schneider <asn@samba.org> | 2025-04-25 11:30:14 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2025-08-05 10:49:34 +0000 |
| commit | 28745e997070e8a7ca3c19cd0fabef789e17cc2d (patch) | |
| tree | 05fd838dab3bd11de3d0f9a444e44861662eb1e0 /python | |
| parent | 942f407337bb99c3d8de77f478e001f8357f8594 (diff) | |
| download | samba-28745e997070e8a7ca3c19cd0fabef789e17cc2d.tar.gz samba-28745e997070e8a7ca3c19cd0fabef789e17cc2d.tar.bz2 samba-28745e997070e8a7ca3c19cd0fabef789e17cc2d.zip | |
auth:creds: Make sure when parsing username that realm is uppercase
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/tests/credentials.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/tests/credentials.py b/python/samba/tests/credentials.py index f9781f8ba03..bc132681c48 100644 --- a/python/samba/tests/credentials.py +++ b/python/samba/tests/credentials.py @@ -403,7 +403,7 @@ class CredentialsTests(samba.tests.TestCaseInTempDir): self.assertEqual(creds.get_username(), "user@samba.org") self.assertEqual(creds.get_domain(), "") self.assertEqual(creds.get_realm(), "SAMBA.ORG") - self.assertEqual(creds.get_principal(), "user@samba.org") + self.assertEqual(creds.get_principal(), "user@SAMBA.ORG") self.assertEqual(creds.is_anonymous(), False) self.assertEqual(creds.authentication_requested(), True) @@ -445,7 +445,7 @@ class CredentialsTests(samba.tests.TestCaseInTempDir): self.assertEqual(creds.get_domain(), "") self.assertEqual(creds.get_password(), "pass") self.assertEqual(creds.get_realm(), "SAMBA.ORG") - self.assertEqual(creds.get_principal(), "user@samba.org") + self.assertEqual(creds.get_principal(), "user@SAMBA.ORG") self.assertEqual(creds.is_anonymous(), False) self.assertEqual(creds.authentication_requested(), True) |
