]> git.sur5r.net Git - openldap/commitdiff
fix SASL ssf logging (ITS#5001)
authorPierangelo Masarati <ando@openldap.org>
Sat, 9 Jun 2007 15:31:46 +0000 (15:31 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 9 Jun 2007 15:31:46 +0000 (15:31 +0000)
servers/slapd/connection.c

index 27b71a435c32d0cbe3cbf1314ee50facf85c69e0..2899a40cda41649ce525399389d669720ca74ed1 100644 (file)
@@ -1815,13 +1815,14 @@ static int connection_bind_cb( Operation *op, SlapReply *rs )
 
                        /* log authorization identity */
                        Statslog( LDAP_DEBUG_STATS,
-                               "%s BIND dn=\"%s\" mech=%s ssf=%d\n",
+                               "%s BIND dn=\"%s\" mech=%s sasl_ssf=%d ssf=%d\n",
                                op->o_log_prefix,
                                BER_BVISNULL( &op->o_conn->c_dn ) ? "<empty>" : op->o_conn->c_dn.bv_val,
-                               op->o_conn->c_authmech.bv_val, op->orb_ssf, 0 );
+                               op->o_conn->c_authmech.bv_val,
+                               op->orb_ssf, op->o_conn->c_ssf );
 
                        Debug( LDAP_DEBUG_TRACE,
-                               "do_bind: SASL/%s bind: dn=\"%s\" ssf=%d\n",
+                               "do_bind: SASL/%s bind: dn=\"%s\" sasl_ssf=%d\n",
                                op->o_conn->c_authmech.bv_val,
                                BER_BVISNULL( &op->o_conn->c_dn ) ? "<empty>" : op->o_conn->c_dn.bv_val,
                                op->orb_ssf );