summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-04-18 13:39:58 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-05-01 05:32:25 +0000
commite5a099482d9ad17913065351f8c3d02a2b48c03d (patch)
treea11707be275f6afcfa0e02148c579ff6ae76b37e /source4/selftest
parentc73888ff6f22de86f72ff254d332b44848cb9959 (diff)
downloadsamba-e5a099482d9ad17913065351f8c3d02a2b48c03d.tar.gz
pytests: try ldap.modify_order with normal user
We run the tests again, trying to modify as a normal user rather than Administrator. It turns out that we do not always return the same error code as Windows, but in all these tests both Windows and Samba always return some kind of error (as you might hope). Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/selftest')
-rwxr-xr-xsource4/selftest/tests.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 7d879ff1baf..9001a98a5b3 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -841,6 +841,20 @@ plantestsuite_loadlist("samba4.ldap_modify_order.python(ad_dc_default)",
[python, os.path.join(samba4srcdir,
"dsdb/tests/python/"
"ldap_modify_order.py"),
+ # add "-v" here to diagnose
+ '$SERVER',
+ '-U"$USERNAME%$PASSWORD"',
+ '--workgroup=$DOMAIN',
+ '$LOADLIST',
+ '$LISTOPT'])
+
+plantestsuite_loadlist("samba4.ldap_modify_order.normal_user.python(ad_dc_default)",
+ "ad_dc_default",
+ [python, os.path.join(samba4srcdir,
+ "dsdb/tests/python/"
+ "ldap_modify_order.py"),
+ '--normal-user',
+ # add "-v" here to diagnose
'$SERVER',
'-U"$USERNAME%$PASSWORD"',
'--workgroup=$DOMAIN',