ldap/servers/slapd/entry.c | 1 +
ldap/servers/slapd/entrywsi.c | 1 +
2 files changed, 2 insertions(+)
New commits:
commit e6ba96d17360a6ed2a411a5fee4564d4d4697dc4
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
Date: Fri Oct 14 13:50:18 2016 +0200
Ticket 49009 - args debug logging must be more restrictive
Bug Description: turning on args debugging logs all attribute value, including
#unhashed#
Fix Description: filter unhashed attrs
https://fedorahosted.org/389/ticket/49009
Reviewed by: ?
diff --git a/ldap/servers/slapd/entry.c b/ldap/servers/slapd/entry.c
index d38f970..0cd3b60 100644
--- a/ldap/servers/slapd/entry.c
+++ b/ldap/servers/slapd/entry.c
@@ -3659,6 +3659,7 @@ entry_apply_mod( Slapi_Entry *e, const LDAPMod *mod )
if((strcasecmp(mod->mod_type,"objectclass") == 0)
&& (strncasecmp((const char
*)mod->mod_bvalues[i]->bv_val,"ldapsubentry",mod->mod_bvalues[i]->bv_len)
== 0))
sawsubentry=PR_TRUE;
+ if (0==strcasecmp(PSEUDO_ATTR_UNHASHEDUSERPASSWORD,mod->mod_type)) continue;
LDAPDebug( LDAP_DEBUG_ARGS, " %s: %s\n", mod->mod_type,
mod->mod_bvalues[i]->bv_val, 0 );
}
bvcnt = i;
diff --git a/ldap/servers/slapd/entrywsi.c b/ldap/servers/slapd/entrywsi.c
index a8f8455..1a4c6aa 100644
--- a/ldap/servers/slapd/entrywsi.c
+++ b/ldap/servers/slapd/entrywsi.c
@@ -920,6 +920,7 @@ entry_apply_mod_wsi(Slapi_Entry *e, const LDAPMod *mod, const CSN
*csn, int urp)
for ( i = 0;
mod->mod_bvalues != NULL && mod->mod_bvalues[i] != NULL;
i++ ) {
+ if (0==strcasecmp(PSEUDO_ATTR_UNHASHEDUSERPASSWORD,mod->mod_type)) continue;
LDAPDebug( LDAP_DEBUG_ARGS, " %s: %s\n",
mod->mod_type, mod->mod_bvalues[i]->bv_val, 0 );
}