#include "ldap-int.h"
+
/*
* ldap_open - initialize and connect to an ldap server. A magic cookie to
* be used for future communication is returned on success, NULL on failure.
WSACleanup( );
return( NULL );
}
-
+
/* copy the global options */
memcpy(&ld->ld_options, &openldap_ldap_global_options,
sizeof(ld->ld_options));
/* we'll assume we're talking version 2 for now */
ld->ld_version = LDAP_VERSION2;
- ld->ld_sb.sb_sd = -1;
+ lber_pvt_sb_init( &(ld->ld_sb) );
+
return( ld );
}
if ( rc == -1 ) {
return( rc );
}
+
+ lber_pvt_sb_set_io( sb, &lber_pvt_sb_io_tcp, NULL );
if ( krbinstancep != NULL ) {
#ifdef HAVE_KERBEROS