diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-05-21 13:14:08 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-05-24 03:19:18 +0000 |
commit | 6ccf74cf878c295903673e3a1d1ed924a5e87547 (patch) | |
tree | 7c5037f6fed5bd48d4d37200c450cb1583f74a52 /source4/selftest | |
parent | 163897f12538ae12dbc2bd556adcc1abc4f0f438 (diff) | |
download | samba-6ccf74cf878c295903673e3a1d1ed924a5e87547.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>
Diffstat (limited to 'source4/selftest')
-rwxr-xr-x | source4/selftest/tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index aca41f261cd..f807bf75519 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -912,6 +912,14 @@ plantestsuite_loadlist("samba4.ldap.subtree_rename.python(ad_dc_ntvfs)", '$LOADLIST', '$LISTOPT']) +planoldpythontestsuite( + "ad_dc_default", + "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 ['offlinebackupdc', 'restoredc', 'renamedc', 'labdc']: |