Lines Matching refs:ber
32 BerElement *ber;
41 if ( (ber = alloc_ber_with_options( ld )) == NULLBER ) {
46 if ( ber_printf( ber, "{it{ts", ++ld->ld_msgid, LDAP_REQ_EXTENDED, LDAP_TAG_EXT_NAME, exoid ) == -1 ) {
48 ber_free( ber, 1 );
52 if (exdata && (ber_printf(ber, "to", LDAP_TAG_EXT_VAL, exdata->bv_val, exdata->bv_len) == -1 )) {
54 ber_free( ber, 1 );
58 if ( ber_printf( ber, "}" ) == -1 ) {
60 ber_free( ber, 1 );
66 if (ldap_controls_code(ber, serverctrls) != LDAP_SUCCESS){
68 ber_free( ber, 1 );
73 if (ldap_controls_code(ber, ld->ld_srvctrls) != LDAP_SUCCESS){
75 ber_free( ber, 1 );
80 if ( ber_printf( ber, "}" ) == -1 ) {
82 ber_free( ber, 1 );
86 return (ber);
103 BerElement *ber;
111 if (( ber = ldap_build_extended_operation_req( ld, exoid, exdata, serverctrls)) == NULLBER ) {
122 rv = send_initial_request( ld, LDAP_REQ_EXTENDED, NULL, ber );