]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/tools/centipede.c
Added connection initialisation and destruction notification. Now backends can regist...
[openldap] / servers / slapd / tools / centipede.c
index 536417b43f7b8ccbce36aff62452662ebf18af57..f3b36d72f3697e63890e1cf5e7265b7d22698e39 100644 (file)
@@ -3,7 +3,7 @@
 #include "portable.h"
 
 #include <stdio.h>
-#include <stdlib.h>
+#include <ac/stdlib.h>
 
 #include <ac/ctype.h>
 #include <ac/string.h>
@@ -383,8 +383,8 @@ start_ldap_search(
                fflush( stdout );
        }
 
-       if ( (ld = ldap_open( ldaphost, 0 )) == NULL ) {
-               perror( "ldap_open" );
+       if ( (ld = ldap_init( ldaphost, 0 )) == NULL ) {
+               perror( "ldap_init" );
                return( NULL );
        }
 
@@ -976,8 +976,8 @@ bind_to_destination_ldap(
        free( ldapbase );
        ldapbase = strdup( buf );
 
-       if ( (ld = ldap_open( ldaphost, 0 )) == NULL ) {
-               perror( "ldap_open" );
+       if ( (ld = ldap_init( ldaphost, 0 )) == NULL ) {
+               perror( "ldap_init" );
                return( NULL );
        }