summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-08-27 11:55:29 -0600
committerRich Megginson <rmeggins@redhat.com>2010-08-31 13:35:55 -0600
commit8a943175138bbfec0b398ea4ffd24f3047df3951 (patch)
tree0de237774ea8b33921ebf7fc31177dc1986f0e4b /lib
parent219b8af89283faae5fb408beb74f082ff7265d34 (diff)
downloadds-8a943175138bbfec0b398ea4ffd24f3047df3951.tar.gz
ds-8a943175138bbfec0b398ea4ffd24f3047df3951.tar.xz
ds-8a943175138bbfec0b398ea4ffd24f3047df3951.zip
implement slapi_ldap_explode_dn and slapi_ldap_explode_rdn
The DS has some problems with the openldap versions of these functions: 1) They are deprecated - should use the str2[r]dn and [r]dn2str and the bv versions of those functions instead 2) They escape utf-8 and other values in the strings - the mozldap functions do not do this 3) They handle double quoted strings, but they remove the quotes - our code expects the quotes to be left in place Until we fix our DN handling, and get rid of the double quoted DNs, we just use the mozldap versions of these functions.
Diffstat (limited to 'lib')
-rw-r--r--lib/ldaputil/cert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldaputil/cert.c b/lib/ldaputil/cert.c
index 30fd0f4b..c26ff41f 100644
--- a/lib/ldaputil/cert.c
+++ b/lib/ldaputil/cert.c
@@ -221,12 +221,12 @@ _explode_dn (const char* dn)
{
auto char*** exp = NULL;
if (dn && *dn) {
- auto char** rdns = ldap_explode_dn (dn, 0);
+ auto char** rdns = slapi_ldap_explode_dn (dn, 0);
if (rdns) {
auto size_t expLen = 0;
auto char** rdn;
for (rdn = rdns; *rdn; ++rdn) {
- auto char** avas = ldap_explode_rdn (*rdn, 0);
+ auto char** avas = slapi_ldap_explode_rdn (*rdn, 0);
if (avas && *avas) {
exp = (char***) ldapu_realloc (exp, sizeof(char**) * (expLen + 2));
if (exp) {