]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9051 Check for more success result codes
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 16 Mar 2021 10:02:32 +0000 (10:02 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 18 Mar 2021 16:36:56 +0000 (16:36 +0000)
servers/slapd/overlays/accesslog.c

index 128f8193c29cb8b4da544c4ac261bcd522bcef55..d33ff82326062b55f27c1cbed1dd128f1962e092 100644 (file)
@@ -1549,7 +1549,13 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
                return SLAP_CB_CONTINUE;
        }
 
-       if ( li->li_success && rs->sr_err != LDAP_SUCCESS )
+       /*
+        * ITS#9051 Technically LDAP_REFERRAL and LDAP_SASL_BIND_IN_PROGRESS
+        * are not errors, but they aren't really success either
+        */
+       if ( li->li_success && rs->sr_err != LDAP_SUCCESS &&
+                       rs->sr_err != LDAP_COMPARE_TRUE &&
+                       rs->sr_err != LDAP_COMPARE_FALSE )
                goto done;
 
        e = accesslog_entry( op, rs, li, logop, &op2 );