Lines Matching refs:rc
262 int rc = 0, ldap_option = 0;
309 if (result->rc) {
312 return result->rc;
324 return(result->rc);
331 rc = apr_ldap_rebind_add(ldc->rebind_pool, ldc->ldap, ldc->binddn, ldc->bindpw);
332 if (rc != APR_SUCCESS) {
333 ap_log_error(APLOG_MARK, APLOG_ERR, rc, r->server, APLOGNO(01277)
337 return(rc);
348 if (LDAP_SUCCESS != result->rc) {
351 return(result->rc);
364 if (LDAP_SUCCESS != result->rc) {
367 return(result->rc);
385 if (result->rc != LDAP_SUCCESS) {
389 result->rc);
393 return(result->rc);
407 if (result->rc != LDAP_SUCCESS) {
411 result->rc);
415 return(result->rc);
427 result->rc = ldapssl_set_verify_mode(LDAPSSL_VERIFY_SERVER);
430 result->rc = ldapssl_set_verify_mode(LDAPSSL_VERIFY_NONE);
437 result->rc = ldap_set_option(NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &i);
441 result->rc = ldap_set_option(NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &i);
452 rc = apr_ldap_set_option(r->pool, ldc->ldap, LDAP_OPT_NETWORK_TIMEOUT,
454 if (APR_SUCCESS != rc) {
471 rc = apr_ldap_set_option(r->pool, ldc->ldap, LDAP_OPT_TIMEOUT,
473 if (APR_SUCCESS != rc) {
480 return(rc);
506 int rc;
512 rc = ldap_result(ldc->ldap, msgid, 0, timeout, &result);
513 if (rc == -1) {
518 else if (rc == 0) {
520 rc = LDAP_TIMEOUT;
521 } else if (ldap_parse_result(ldc->ldap, result, &rc, NULL, NULL, NULL,
530 return rc;
542 int rc = 0;
565 rc = uldap_connection_init( r, ldc );
566 if (LDAP_SUCCESS != rc)
568 return rc;
592 rc = uldap_simple_bind(ldc, (char *)ldc->binddn, (char *)ldc->bindpw,
595 if (rc == LDAP_SUCCESS) break;
599 if (AP_LDAP_IS_SERVER_DOWN(rc)) {
604 else if (rc == LDAP_TIMEOUT) {
621 /* leave rc as the initial bind return code */
629 if (LDAP_SUCCESS != rc)
640 return(rc);
2919 int rc;
3007 rc = apr_ldap_ssl_init(p,
3014 if (APR_SUCCESS == rc) {
3015 rc = apr_ldap_set_option(ptemp, NULL, APR_LDAP_OPT_TLS_CERT,
3020 if (APR_SUCCESS == rc) {