From: Kurt Zeilenga Date: Thu, 18 Dec 2003 19:15:57 +0000 (+0000) Subject: Use ldap_unbind_ext(3) X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~145 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2b9a4913bfa573c09f2625279a3c478d8f06825;p=openldap Use ldap_unbind_ext(3) --- diff --git a/clients/tools/ldapcompare.c b/clients/tools/ldapcompare.c index 896bfac5ad..df22fc77a8 100644 --- a/clients/tools/ldapcompare.c +++ b/clients/tools/ldapcompare.c @@ -217,7 +217,7 @@ main( int argc, char **argv ) free( bvalue.bv_val ); - ldap_unbind( ld ); + ldap_unbind_ext( ld, NULL, NULL ); return rc; } diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 3225f36196..eb6e4eb1d1 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -197,7 +197,7 @@ main( int argc, char **argv ) } } - ldap_unbind( ld ); + ldap_unbind_ext( ld, NULL, NULL ); return( retval ); } diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index e6792fe485..7739a17105 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -307,7 +307,7 @@ main( int argc, char **argv ) } if ( !not ) { - ldap_unbind( ld ); + ldap_unbind_ext( ld, NULL, NULL ); } if ( rejfp != NULL ) { diff --git a/clients/tools/ldapmodrdn.c b/clients/tools/ldapmodrdn.c index 4bb2b80f86..7f738773c5 100644 --- a/clients/tools/ldapmodrdn.c +++ b/clients/tools/ldapmodrdn.c @@ -227,7 +227,7 @@ main(int argc, char **argv) } } - ldap_unbind( ld ); + ldap_unbind_ext( ld, NULL, NULL ); return( retval ); } diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index 0cc34d7c16..f0a409dccf 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -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; } diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index c5b6f57e47..6afae24d48 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -825,7 +825,7 @@ getNextPage: } #endif - ldap_unbind( ld ); + ldap_unbind_ext( ld, NULL, NULL ); #ifdef HAVE_CYRUS_SASL sasl_done(); #endif