diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-08-04 11:44:19 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-08-29 07:23:28 +0200 |
commit | dd863b604984c1504895f376ec64f58e27e53efa (patch) | |
tree | 49363883f4aeafcd009621be261ab7d55115b331 /source4/selftest | |
parent | f9d4158f0b002b482df0a919d4cb337cce81f9f8 (diff) | |
download | samba-dd863b604984c1504895f376ec64f58e27e53efa.tar.gz |
s4-drsuapi: Avoid segfault when replicating as a non-admin with GUID_DRS_GET_CHANGES
Users who are not administrator do not get b_state->sam_ctx_system filled in.
We should probably use the 'sam_ctx' variable in all cases (instead of
b_state->sam_ctx*), but I'll make this change in a separate patch, so
that the bug fix remains independent from other tidy-ups.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12946
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/selftest')
-rwxr-xr-x | source4/selftest/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 215257388b2..8aeba34810e 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -853,6 +853,11 @@ for env in ['vampire_dc', 'promoted_dc']: name="samba4.drs.getnc_exop.python(%s)" % env, environ={'DC1': "$DC_SERVER", 'DC2': '$%s_SERVER' % env.upper()}, extra_args=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD']) + planoldpythontestsuite(env, "getnc_unpriv", + extra_path=[os.path.join(samba4srcdir, 'torture/drs/python')], + name="samba4.drs.getnc_unpriv.python(%s)" % env, + environ={'DC1': "$DC_SERVER", 'DC2': '$%s_SERVER' % env.upper()}, + extra_args=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD']) planoldpythontestsuite(env, "linked_attributes_drs", extra_path=[os.path.join(samba4srcdir, 'torture/drs/python')], name="samba4.drs.linked_attributes_drs.python(%s)" % env, |