ldap/servers/slapd/ldaputil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8c30b05985b71760aea6d2e413ed096e17c8ded0
Author: Nathan Kinder <nkinder(a)redhat.com>
Date: Thu Jan 6 11:46:50 2011 -0800
Bug 659131 - Incorrect RDN values added with multi-valued RDN
When changes were made to allow 389 to use the OpenLDAP client
libraries, a wrapper function was made around the MozLDAP
ldap_explode_rdn() function. Unfortuantely, this wrapper was
calling ldap_explode_dn() when buitl against MozLDAP instead of
calling ldap_explode_rdn(). This would cause a multi-valued RDN
to not be exploded into individual elements. This would cause us
to add incorrect RDN values to a newly added entry that had a
multi-valued RDN.
diff --git a/ldap/servers/slapd/ldaputil.c b/ldap/servers/slapd/ldaputil.c
index 7103fc7..11fe4fb 100644
--- a/ldap/servers/slapd/ldaputil.c
+++ b/ldap/servers/slapd/ldaputil.c
@@ -1097,7 +1097,7 @@ slapi_ldap_explode_rdn(const char *rdn, int notypes)
#if defined(USE_OPENLDAP)
return mozldap_ldap_explode_rdn(rdn, notypes);
#else
- return ldap_explode_dn(rdn, notypes);
+ return ldap_explode_rdn(rdn, notypes);
#endif
}
Show replies by date