From: Volker Lendecke Date: Tue, 4 Aug 2020 10:50:22 +0000 (+0200) Subject: torture: Pass DN and password to ldap.basic test X-Git-Tag: talloc-2.3.2~765 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c36316ecb1473273d03136ae46a4fbd448e7fdb;p=thirdparty%2Fsamba.git torture: Pass DN and password to ldap.basic test 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 Reviewed-by: Jeremy Allison --- diff --git a/selftest/knownfail.d/ldap b/selftest/knownfail.d/ldap index 0331d3687d4..fb350639e83 100644 --- a/selftest/knownfail.d/ldap +++ b/selftest/knownfail.d/ldap @@ -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\) diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 42be34a8afc..31b777fbcb8 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -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")