]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/dn.c
Add reference to slapd.conf(5) and recommendation to avoid cleartext passwords.
[openldap] / servers / slapd / dn.c
index d67aca70acb54293f011788fed664b829ca7d9f8..495eca4b70b100ca944f8cd5936f41f577b17087 100644 (file)
@@ -11,8 +11,6 @@
 
 #include "slap.h"
 
-static char    **dn_explode();
-
 #define DNSEPARATOR(c) (c == ',' || c == ';')
 #define SEPARATOR(c)   (c == ',' || c == ';' || c == '+')
 #define SPACE(c)       (c == ' ' || c == '\n')
@@ -181,7 +179,7 @@ dn_parent(
                if ( *(s + 1) == '\0' ) {
                        return( NULL );
                } else {
-                       return( strdup( s + 1 ) );
+                       return( ch_strdup( s + 1 ) );
                }
        }
 
@@ -204,11 +202,11 @@ dn_parent(
                        if ( *s == '"' )
                                inquote = 1;
                        else if ( DNSEPARATOR( *s ) )
-                               return( strdup( s + 1 ) );
+                               return( ch_strdup( s + 1 ) );
                }
        }
 
-       return( strdup("") );
+       return( ch_strdup("") );
 }
 
 /*