- ber_str2bv( val, 0, 0, &bv_val );
- attrs[ 0 ] = (char *) attr;
-
- rc = ldap_initialize( &ld, uri );
- if ( rc != LDAP_SUCCESS ) {
- return rc;
- }
-
- rc = ldap_set_option( ld, LDAP_OPT_PROTOCOL_VERSION,
- (const void *)&version );
- if ( rc != LDAP_SUCCESS ) {
- goto done;
- }
-
- rc = ldap_sasl_bind_s( ld, "", LDAP_SASL_SIMPLE,
- &cred, NULL, NULL, NULL );