}
}
- ldap_unbind( ld );
+ ldap_unbind_ext( ld, NULL, NULL );
return( retval );
}
/*
* Delete all the children of an entry recursively until leaf nodes are reached.
- *
*/
static int deletechildren(
LDAP *ld,
LDAPMessage *res, *e;
int entries;
int rc;
- static char *attrs[] = { "1.1", NULL };
+ static char *attrs[] = { LDAP_NO_ATTRS, NULL };
if ( verbose ) printf ( _("deleting children of: %s\n"), dn );
/*
if( ber == NULL ) {
perror( "ber_alloc_t" );
- ldap_unbind( ld );
+ ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
if( rc < 0 ) {
perror( "ber_flatten2" );
- ldap_unbind( ld );
+ ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
}
if( rc != LDAP_SUCCESS ) {
ldap_perror( ld, "ldap_extended_operation" );
- ldap_unbind( ld );
+ ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
if( ber == NULL ) {
perror( "ber_init" );
- ldap_unbind( ld );
+ ldap_unbind_ext( ld, NULL, NULL );
return EXIT_FAILURE;
}
skip:
/* disconnect from server */
- ldap_unbind (ld);
+ ldap_unbind_ext( ld, NULL, NULL );
return code == LDAP_SUCCESS ? EXIT_SUCCESS : EXIT_FAILURE;
}