diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-05-21 13:14:08 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-06-21 07:56:17 +0000 |
commit | 670b864e908a52f14437f7f63e70bf9603906528 (patch) | |
tree | 1c153f9e204bc42f9eb550fc78bc1d9da066638b /source4/selftest/tests.py | |
parent | 2cde13061695f099f4a5110232f2630869f897b6 (diff) | |
download | samba-670b864e908a52f14437f7f63e70bf9603906528.tar.gz |
ldap tests: test scheme for referrals
Ensure that the referrals returned in a search request use the same
scheme as the request, i.e. referrals recieved via ldap are prefixed
with "ldap://" and those over ldaps are prefixed with "ldaps://"
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12478
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 6ccf74cf878c295903673e3a1d1ed924a5e87547)
Diffstat (limited to 'source4/selftest/tests.py')
-rwxr-xr-x | source4/selftest/tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index d6fb388dc33..2797babf0fd 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -829,6 +829,15 @@ plantestsuite_loadlist("samba4.ldap.sort.python(ad_dc_ntvfs)", "ad_dc_ntvfs", [p plantestsuite_loadlist("samba4.ldap.vlv.python(ad_dc_ntvfs)", "ad_dc_ntvfs", [python, os.path.join(samba4srcdir, "dsdb/tests/python/vlv.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT']) plantestsuite_loadlist("samba4.ldap.linked_attributes.python(ad_dc_ntvfs)", "ad_dc_ntvfs:local", [python, os.path.join(samba4srcdir, "dsdb/tests/python/linked_attributes.py"), '$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb', '-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT']) +planoldpythontestsuite( + "ad_dc_ntvfs", + "samba.tests.ldap_referrals", + environ={ + 'SERVER': '$SERVER', + }, + name="samba.ldap.referrals", + extra_args=['-U"$USERNAME%$PASSWORD"', '--workgroup=$DOMAIN']) + # These should be the first tests run against testenvs created by backup/restore for env in ['restoredc', 'renamedc', 'labdc']: # check that a restored DC matches the original DC (backupfromdc) |