]> git.sur5r.net Git - openldap/commitdiff
Use ldap_unbind_ext(3)
authorKurt Zeilenga <kurt@openldap.org>
Thu, 18 Dec 2003 19:15:57 +0000 (19:15 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 18 Dec 2003 19:15:57 +0000 (19:15 +0000)
clients/tools/ldapcompare.c
clients/tools/ldapdelete.c
clients/tools/ldapmodify.c
clients/tools/ldapmodrdn.c
clients/tools/ldappasswd.c
clients/tools/ldapsearch.c

index 896bfac5ad81a7f800c74eb165a0779b20f99095..df22fc77a8e77a502a36234b94db83d8fc7415bc 100644 (file)
@@ -217,7 +217,7 @@ main( int argc, char **argv )
 
        free( bvalue.bv_val );
 
-       ldap_unbind( ld );
+       ldap_unbind_ext( ld, NULL, NULL );
 
        return rc;
 }
index 3225f361960a293c966900e71c7e00ba5e4e6ba2..eb6e4eb1d11ac8fce1bf11d89ebdc21d68b15b51 100644 (file)
@@ -197,7 +197,7 @@ main( int argc, char **argv )
                }
        }
 
-    ldap_unbind( ld );
+       ldap_unbind_ext( ld, NULL, NULL );
 
     return( retval );
 }
index e6792fe485e943a3229d57eb49c065e6dba78639..7739a17105df6d99fcc1dbc3c9993037ceb6e70e 100644 (file)
@@ -307,7 +307,7 @@ main( int argc, char **argv )
        }
 
        if ( !not ) {
-               ldap_unbind( ld );
+               ldap_unbind_ext( ld, NULL, NULL );
        }
 
        if ( rejfp != NULL ) {
index 4bb2b80f8667cb1423a0835899af767ccff1b014..7f738773c51642efde168cbbe01c22345a9b4380 100644 (file)
@@ -227,7 +227,7 @@ main(int argc, char **argv)
        }
     }
 
-    ldap_unbind( ld );
+       ldap_unbind_ext( ld, NULL, NULL );
 
     return( retval );
 }
index 0cc34d7c167f88cde9dc903caec0b79adc3f8f49..f0a409dccf66042a55dc380c6d1e89a7fe51a6dd 100644 (file)
@@ -259,7 +259,7 @@ main( int argc, char *argv[] )
 
                if( ber == NULL ) {
                        perror( "ber_alloc_t" );
-                       ldap_unbind( ld );
+                       ldap_unbind_ext( ld, NULL, NULL );
                        return EXIT_FAILURE;
                }
 
@@ -289,7 +289,7 @@ main( int argc, char *argv[] )
 
                if( rc < 0 ) {
                        perror( "ber_flatten2" );
-                       ldap_unbind( ld );
+                       ldap_unbind_ext( ld, NULL, NULL );
                        return EXIT_FAILURE;
                }
        }
@@ -307,7 +307,7 @@ main( int argc, char *argv[] )
 
        if( rc != LDAP_SUCCESS ) {
                ldap_perror( ld, "ldap_extended_operation" );
-               ldap_unbind( ld );
+               ldap_unbind_ext( ld, NULL, NULL );
                return EXIT_FAILURE;
        }
 
@@ -339,7 +339,7 @@ main( int argc, char *argv[] )
 
                if( ber == NULL ) {
                        perror( "ber_init" );
-                       ldap_unbind( ld );
+                       ldap_unbind_ext( ld, NULL, NULL );
                        return EXIT_FAILURE;
                }
 
@@ -383,7 +383,7 @@ main( int argc, char *argv[] )
 
 skip:
        /* disconnect from server */
-       ldap_unbind (ld);
+       ldap_unbind_ext( ld, NULL, NULL );
 
        return code == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE;
 }
index c5b6f57e479b2ffb65903c6747922669fe1a7f4f..6afae24d4836c1dd7b9584be19e116a2f0a0a01f 100644 (file)
@@ -825,7 +825,7 @@ getNextPage:
        }
 #endif
 
-       ldap_unbind( ld );
+       ldap_unbind_ext( ld, NULL, NULL );
 #ifdef HAVE_CYRUS_SASL
        sasl_done();
 #endif