Skip to content
Snippets Groups Projects
Commit bcd73068 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#2268: SASL/ANONYMOUS fixes from kuenne@rentec.com

parent c9278e54
No related branches found
No related tags found
No related merge requests found
......@@ -331,16 +331,21 @@ do_bind(
Statslog( LDAP_DEBUG_STATS,
"conn=%lu op=%lu AUTHZ dn=\"%s\" mech=%s ssf=%d\n",
op->o_connid, op->o_opid,
conn->c_dn.bv_val, conn->c_authmech.bv_val, ssf );
conn->c_dn.bv_val ? conn->c_dn.bv_val : "<empty>",
conn->c_authmech.bv_val, ssf );
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, DETAIL1,
"do_bind: SASL/%s bind: dn=\"%s\" ssf=%d\n",
conn->c_authmech.bv_val, conn->c_dn.bv_val, ssf );
conn->c_authmech.bv_val,
conn->c_dn.bv_val ? conn->c_dn.bv_val : "<empty>",
ssf );
#else
Debug( LDAP_DEBUG_TRACE,
"do_bind: SASL/%s bind: dn=\"%s\" ssf=%d\n",
conn->c_authmech.bv_val, conn->c_dn.bv_val, ssf );
conn->c_authmech.bv_val,
conn->c_dn.bv_val ? conn->c_dn.bv_val : "<empty>",
ssf );
#endif
} else if ( rc == LDAP_SASL_BIND_IN_PROGRESS ) {
......
......@@ -610,13 +610,13 @@ slap_sasl_canonicalize(
LDAP_LOG( TRANSPORT, ENTRY,
"slap_sasl_canonicalize: conn %d %s=\"%s\"\n",
conn ? conn->c_connid : -1,
(flags & SASL_CU_AUTHID) ? "authcid" : "authzid", in ? in : "<empty>");
(flags & SASL_CU_AUTHID) ? "authcid" : "authzid",
in ? in : "<empty>");
#else
Debug( LDAP_DEBUG_ARGS, "SASL Canonicalize [conn=%ld]: "
"%s=\"%s\"\n",
conn ? conn->c_connid : -1,
(flags & SASL_CU_AUTHID) ? "authcid" : "authzid",
in ? in : "<empty>" );
Debug( LDAP_DEBUG_ARGS, "SASL Canonicalize [conn=%ld]: %s=\"%s\"\n",
conn ? conn->c_connid : -1,
(flags & SASL_CU_AUTHID) ? "authcid" : "authzid",
in ? in : "<empty>");
#endif
/* If name is too big, just truncate. We don't care, we're
......@@ -685,14 +685,16 @@ slap_sasl_canonicalize(
#ifdef NEW_LOGGING
LDAP_LOG( TRANSPORT, ENTRY,
"slap_sasl_canonicalize: conn %d %s=\"%s\"\n",
conn ? conn->c_connid : -1, names[0]+1, dn.bv_val );
conn ? conn->c_connid : -1, names[0]+1,
dn.bv_val ? dn.bv_val : "<EMPTY>" );
#else
Debug( LDAP_DEBUG_ARGS, "SASL Canonicalize [conn=%ld]: "
"%s=\"%s\"\n",
conn ? conn->c_connid : -1,
names[0]+1, dn.bv_val );
Debug( LDAP_DEBUG_ARGS, "SASL Canonicalize [conn=%ld]: %s=\"%s\"\n",
conn ? conn->c_connid : -1, names[0]+1,
dn.bv_val ? dn.bv_val : "<EMPTY>" );
#endif
done: AC_MEMCPY( out, in, inlen );
done:
AC_MEMCPY( out, in, inlen );
out[inlen] = '\0';
*out_len = inlen;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment