Relying on the rcode does not match any other encoders. If we need to
make the cookie return optional, it should be based on
request->reply->code
*/
if (request->reply->code != FR_LDAP_SYNC_CODE_COOKIE_LOAD_RESPONSE) goto send;
- /*
- * We only return the cookie if the section exited "ok" or "updated"
- */
- if ((request->rcode != RLM_MODULE_OK) && (request->rcode != RLM_MODULE_UPDATED)) goto send;
-
vp = fr_pair_find_by_da_nested(&request->reply_pairs, NULL, attr_ldap_sync_cookie);
if ((vp) && (vp->data.vb_length > 0)) {
fr_pair_remove(&request->reply_pairs, vp);