]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: let lsa_utils.py use valid netbios names
authorStefan Metzmacher <metze@samba.org>
Wed, 5 Feb 2025 12:12:48 +0000 (13:12 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 8 Feb 2025 15:26:38 +0000 (15:26 +0000)
createtrustrelax has 16 characters, but only 15 are allowed
and they are typically uppercase.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/tests/dcerpc/lsa_utils.py

index 229f57ec5468d3409cc584fa585ee9e27e6f1a52..d5db0723772cf6b1668d9aebba2781df36ef5ac6 100644 (file)
@@ -98,7 +98,7 @@ class CreateTrustedDomain(TestCase):
 
         info = lsa.TrustDomainInfoInfoEx()
         info.domain_name.string = name.string
-        info.netbios_name.string = "createtrustrelax"
+        info.netbios_name.string = "TESTTRUSTRELAXX"
         info.sid = security.dom_sid("S-1-5-21-538490383-3740119673-95748416")
         info.trust_direction = (
             lsa.LSA_TRUST_DIRECTION_INBOUND
@@ -187,7 +187,7 @@ class CreateTrustedDomain(TestCase):
 
         info = lsa.TrustDomainInfoInfoEx()
         info.domain_name.string = name.string
-        info.netbios_name.string = "createtrustrelax"
+        info.netbios_name.string = "TESTTRUSTRELAXX"
         info.sid = security.dom_sid("S-1-5-21-538490383-3740119673-95748416")
         info.trust_direction = (
             lsa.LSA_TRUST_DIRECTION_INBOUND