]> 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 7b76fe985ad5943453b2103631a1333f13c2938d..495eca4b70b100ca944f8cd5936f41f577b17087 100644 (file)
@@ -1,15 +1,15 @@
 /* dn.c - routines for dealing with distinguished names */
 
-#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
 #include "portable.h"
-#include "slap.h"
 
-static char    **dn_explode();
+#include <stdio.h>
+
+#include <ac/ctype.h>
+#include <ac/socket.h>
+#include <ac/string.h>
+#include <ac/time.h>
+
+#include "slap.h"
 
 #define DNSEPARATOR(c) (c == ',' || c == ';')
 #define SEPARATOR(c)   (c == ',' || c == ';' || c == '+')
@@ -179,7 +179,7 @@ dn_parent(
                if ( *(s + 1) == '\0' ) {
                        return( NULL );
                } else {
-                       return( strdup( s + 1 ) );
+                       return( ch_strdup( s + 1 ) );
                }
        }
 
@@ -202,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("") );
 }
 
 /*