[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#9145) ldap tools try to attach configured controls to cancel/abandon operations



Full_Name: Ondrej Kuznik
Version: re24/master
OS: 
URL: 
Submission from: (NULL) (146.90.154.72)


Take this command for example:

ldapsearch -E '!sync=rp' -E '!cancel'

Here, tool_check_abandon() calls ldap_cancel_s() with sctrls == NULL, but
ld->ld_sctrls contains the syncrepl control as a default so it gets used
instead, same for abandon. This means the option is broken.

tool_check_abandon() should pass an zero-length LDAPControl list instead. Patch
coming shortly.