[Git][openldap/openldap][OPENLDAP_REL_ENG_2_6] 48 commits: ITS#10413 Prepare cookie just before we actually send it