Ticket 48752: Page result search should return empty cookie if there is no returned entry
Bug Description:
When there is no more entry to return the cookie should be empty
(see https://www.ietf.org/rfc/rfc2696.txt).
This is done when current_search_count=-1 but in case current_search_count=0
the cookie is returned. This let the ldap client think it has to continue
to send PR searches
Fix Description:
This fix is an hardening of the case there is no more entry to return.
Plus for the troubleshooting, the cookie value is additionally logged in
the access log:
[..] conn=# op=# RESULT err=0 tag=101 nentries=5 etime=0 notes=P pr_idx=2 pr_cookie=2
https://fedorahosted.org/389/ticket/48752
Reviewed by: nhosoi@redhat.com
Platforms tested: F23
Flag Day: no
Doc impact: no