ca50d1c Ticket 48752: Page result search should return empty cookie if there is no returned entry

6 files Authored by tbordaz 7 years ago, Committed by nhosoi 7 years ago,
    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
    
    (cherry picked from commit f215fb63a4ba2b57c44b29d6a88d655fb98917d1)
    
        
file modified
+13 -0
file modified
+7 -4
file modified
+1 -0