]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Pass DN and password to ldap.basic test
authorVolker Lendecke <vl@samba.org>
Tue, 4 Aug 2020 10:50:22 +0000 (12:50 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 20 Aug 2020 17:20:29 +0000 (17:20 +0000)
Without this, test_multibind() only gets NULL for userdn and password,
not doing what the test claims. This now fails, because our LDAP
server does not allow plain text binds.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/ldap
source4/selftest/tests.py

index 0331d3687d41a6e27f52505aca16d3edf1da7305..fb350639e8380325a03fb9e0dedc59c4ad20a3c0 100644 (file)
@@ -1,3 +1,4 @@
 # the attributes too long test returns the wrong error
 ^samba4.ldap.python.+test_attribute_ranges_too_long
 samba4.ldap.python\(ad_dc_default\).*__main__.BasicTests.test_ldapSearchNoAttributes
+samba4.ldap.basic.basic\(ad_dc_default\)
index 42be34a8afca2afa9ad99df444ae2ed878ffdced..31b777fbcb807dc92adc3dc0b32acbe6cdef06a1 100755 (executable)
@@ -157,7 +157,10 @@ for t in smbtorture4_testsuites("ldap."):
     if t == "ldap.nested-search":
         plansmbtorture4testsuite(t, "ad_dc_default_smb1", '-U"$USERNAME%$PASSWORD" //$SERVER_IP/_none_')
     else:
-        plansmbtorture4testsuite(t, "ad_dc_default", '-U"$USERNAME%$PASSWORD" //$SERVER_IP/_none_')
+        plansmbtorture4testsuite(
+            t,
+            "ad_dc_default",
+            '-U"$USERNAME%$PASSWORD" //$SERVER_IP/_none_ -D "$USERNAME"@"$REALM"##"$PASSWORD"')
 
 for t in smbtorture4_testsuites("dsdb."):
     plansmbtorture4testsuite(t, "ad_dc:local", "localhost")