Lines Matching refs:ld

45     LDAP		*ld,  in ldap_sasl_bind()  argument
77 LDAP_SET_LDERRNO( ld, LDAP_PARAM_ERROR, NULL, NULL ); in ldap_sasl_bind()
82 ldapversion = NSLDAPI_LDAP_VERSION( ld ); in ldap_sasl_bind()
86 LDAP_SET_LDERRNO( ld, LDAP_NOT_SUPPORTED, NULL, NULL ); in ldap_sasl_bind()
90 LDAP_MUTEX_LOCK( ld, LDAP_MSGID_LOCK ); in ldap_sasl_bind()
91 msgid = ++ld->ld_msgid; in ldap_sasl_bind()
92 LDAP_MUTEX_UNLOCK( ld, LDAP_MSGID_LOCK ); in ldap_sasl_bind()
97 if ( ld->ld_cache_on && ld->ld_cache_bind != NULL ) { in ldap_sasl_bind()
98 LDAP_MUTEX_LOCK( ld, LDAP_CACHE_LOCK ); in ldap_sasl_bind()
99 if ( (rc = (ld->ld_cache_bind)( ld, msgid, LDAP_REQ_BIND, dn, in ldap_sasl_bind()
102 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_sasl_bind()
105 LDAP_MUTEX_UNLOCK( ld, LDAP_CACHE_LOCK ); in ldap_sasl_bind()
109 if (( rc = nsldapi_alloc_ber_with_options( ld, &ber )) in ldap_sasl_bind()
141 LDAP_SET_LDERRNO( ld, LDAP_ENCODING_ERROR, NULL, NULL ); in ldap_sasl_bind()
146 if ( (rc = nsldapi_put_controls( ld, serverctrls, 1, ber )) in ldap_sasl_bind()
153 rc = nsldapi_send_initial_request( ld, msgid, LDAP_REQ_BIND, in ldap_sasl_bind()
156 return( rc < 0 ? LDAP_GET_LDERRNO( ld, NULL, NULL ) : LDAP_SUCCESS ); in ldap_sasl_bind()
174 LDAP *ld, in ldap_sasl_bind_s() argument
188 if ( NSLDAPI_LDAP_VERSION( ld ) < LDAP_VERSION3 ) { in ldap_sasl_bind_s()
189 LDAP_SET_LDERRNO( ld, LDAP_NOT_SUPPORTED, NULL, NULL ); in ldap_sasl_bind_s()
193 if ( ( err = ldap_sasl_bind( ld, dn, mechanism, cred, serverctrls, in ldap_sasl_bind_s()
197 if ( ldap_result( ld, msgid, 1, (struct timeval *) 0, &result ) == -1 ) in ldap_sasl_bind_s()
198 return( LDAP_GET_LDERRNO( ld, NULL, NULL ) ); in ldap_sasl_bind_s()
200 err = ldap_parse_sasl_bind_result( ld, result, servercredp, 0 ); in ldap_sasl_bind_s()
206 return( ldap_result2error( ld, result, 1 ) ); in ldap_sasl_bind_s()
214 LDAP *ld, in ldap_parse_sasl_bind_result() argument
239 if ( !NSLDAPI_VALID_LDAP_POINTER( ld ) || in ldap_parse_sasl_bind_result()
245 if ( NSLDAPI_LDAP_VERSION( ld ) < LDAP_VERSION3 ) { in ldap_parse_sasl_bind_result()
246 LDAP_SET_LDERRNO( ld, LDAP_NOT_SUPPORTED, NULL, NULL ); in ldap_parse_sasl_bind_result()
274 LDAP_SET_LDERRNO( ld, err, m, e ); in ldap_parse_sasl_bind_result()