diff options
author | Daniel Liberman <dliberman@lenovoemc.com> | 2014-01-21 16:25:41 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-01-23 01:40:54 +0100 |
commit | b04e8b7557b82a4b96cf74db04742fb017edb3ba (patch) | |
tree | 110aeab425044ecac8926af1ff18f99cd369f3cb /lib/param/param_functions.c | |
parent | 0f347e44e2447e9c03a694198adad6be1fa9dd6c (diff) | |
download | samba-b04e8b7557b82a4b96cf74db04742fb017edb3ba.tar.gz samba-b04e8b7557b82a4b96cf74db04742fb017edb3ba.tar.xz samba-b04e8b7557b82a4b96cf74db04742fb017edb3ba.zip |
s3: ldap client can return NT_STATUS_OK when an error occurs in a paged search.
"Inside ads_do_search_all_args(), if the first call to ads_do_paged_search_args()
fails, the proper error status is returned.
But, if the execution is already inside the loop to get all the accounts doing
several calls to ads_do_paged_search_args(), and one of these calls times out,
the status returned is from the *first* call, so success. This causes
net_ads_search() to interpret the return from ads_do_search_retry() as
success and print all the accounts returned, but it’s only a subset."
Also ensure we free previously returned results on error
in subsequent fetches.
https://bugzilla.samba.org/show_bug.cgi?id=10387
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan 23 01:40:54 CET 2014 on sn-devel-104
Diffstat (limited to 'lib/param/param_functions.c')
0 files changed, 0 insertions, 0 deletions