Lines Matching refs:rc
228 int rc = LDAP_AUTH_METHOD_NOT_SUPPORTED; in ldap_win_bind_auth() local
256 rc = (int)res; in ldap_win_bind_auth()
257 if(!rc) { in ldap_win_bind_auth()
258 rc = (int)ldap_bind_s(server, NULL, (TCHAR *)&cred, method); in ldap_win_bind_auth()
265 rc = (int)ldap_bind_s(server, NULL, NULL, method); in ldap_win_bind_auth()
267 return rc; in ldap_win_bind_auth()
274 int rc = LDAP_INVALID_CREDENTIALS; in ldap_win_bind() local
283 rc = (int)ldap_simple_bind_s(server, inuser, inpass); in ldap_win_bind()
290 rc = (int)ldap_win_bind_auth(server, user, passwd, data->set.httpauth); in ldap_win_bind()
294 return rc; in ldap_win_bind()
310 int rc = 0; in ldap_do() local
338 rc = ldap_url_parse(data->state.url, &ludp); in ldap_do()
340 rc = _ldap_url_parse(data, conn, &ludp); in ldap_do()
342 if(rc) { in ldap_do()
343 failf(data, "Bad LDAP URL: %s", ldap_err2string((curl_ldap_num_t)rc)); in ldap_do()
385 rc = ldapssl_client_init(NULL, NULL); in ldap_do()
386 if(rc != LDAP_SUCCESS) { in ldap_do()
387 failf(data, "LDAP local: ldapssl_client_init %s", ldap_err2string(rc)); in ldap_do()
406 rc = ldapssl_add_trusted_cert(ldap_ca, cert_type); in ldap_do()
407 if(rc != LDAP_SUCCESS) { in ldap_do()
410 ldap_err2string(rc)); in ldap_do()
418 rc = ldapssl_set_verify_mode(ldap_option); in ldap_do()
419 if(rc != LDAP_SUCCESS) { in ldap_do()
421 ldap_err2string(rc)); in ldap_do()
447 rc = ldap_set_option(NULL, LDAP_OPT_X_TLS_CACERTFILE, ldap_ca); in ldap_do()
448 if(rc != LDAP_SUCCESS) { in ldap_do()
450 ldap_err2string(rc)); in ldap_do()
459 rc = ldap_set_option(NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &ldap_option); in ldap_do()
460 if(rc != LDAP_SUCCESS) { in ldap_do()
462 ldap_err2string(rc)); in ldap_do()
474 rc = ldap_set_option(server, LDAP_OPT_X_TLS, &ldap_option); in ldap_do()
475 if(rc != LDAP_SUCCESS) { in ldap_do()
477 ldap_err2string(rc)); in ldap_do()
519 rc = ldap_win_bind(data, server, user, passwd); in ldap_do()
521 rc = ldap_simple_bind_s(server, user, passwd); in ldap_do()
523 if(!ldap_ssl && rc) { in ldap_do()
527 rc = ldap_win_bind(data, server, user, passwd); in ldap_do()
529 rc = ldap_simple_bind_s(server, user, passwd); in ldap_do()
532 if(rc) { in ldap_do()
535 ldap_err2string((ULONG)rc)); in ldap_do()
538 ldap_err2string(rc)); in ldap_do()
545 rc = (int)ldap_search_s(server, ludp->lud_dn, in ldap_do()
549 if(rc && rc != LDAP_SIZELIMIT_EXCEEDED) { in ldap_do()
550 failf(data, "LDAP remote: %s", ldap_err2string((curl_ldap_num_t)rc)); in ldap_do()
747 if(rc == LDAP_SIZELIMIT_EXCEEDED) in ldap_do()
855 int rc = LDAP_SUCCESS; in _ldap_url_parse2() local
897 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
910 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
934 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
948 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
965 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
980 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
1006 rc = LDAP_INVALID_SYNTAX; in _ldap_url_parse2()
1032 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
1045 rc = LDAP_NO_MEMORY; in _ldap_url_parse2()
1056 rc = LDAP_INVALID_SYNTAX; in _ldap_url_parse2()
1065 return rc; in _ldap_url_parse2()
1073 int rc; in _ldap_url_parse() local
1079 rc = _ldap_url_parse2(data, conn, ludp); in _ldap_url_parse()
1080 if(rc != LDAP_SUCCESS) { in _ldap_url_parse()
1085 return (rc); in _ldap_url_parse()