Lines Matching refs:rc

332 		int rc;  in PHP_FUNCTION()  local
334 rc = ldap_initialize(&ldap, host); in PHP_FUNCTION()
335 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
337 …rror_docref(NULL TSRMLS_CC, E_WARNING, "Could not create session handle: %s", ldap_err2string(rc)); in PHP_FUNCTION()
413 int rc; in PHP_FUNCTION() local
433 if ((rc = ldap_bind_s(ld->link, ldap_bind_dn, ldap_bind_pw, LDAP_AUTH_SIMPLE)) != LDAP_SUCCESS) { in PHP_FUNCTION()
434 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to bind to server: %s", ldap_err2string(rc)); in PHP_FUNCTION()
540 int rc, dn_len, passwd_len, mech_len, realm_len, authc_id_len, authz_id_len, props_len; in PHP_FUNCTION() local
555rc = ldap_sasl_interactive_bind_s(ld->link, binddn, ctx->mech, NULL, NULL, LDAP_SASL_QUIET, _php_s… in PHP_FUNCTION()
556 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
557 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to bind to server: %s", ldap_err2string(rc)); in PHP_FUNCTION()
1456 int rc, dn_len; in PHP_FUNCTION() local
1464 if ((rc = ldap_delete_s(ld->link, dn)) != LDAP_SUCCESS) { in PHP_FUNCTION()
1465 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Delete: %s", ldap_err2string(rc)); in PHP_FUNCTION()
2220 int rc, lerrcode, myargcount = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
2229 rc = ldap_parse_result(ld->link, ldap_result, &lerrcode, in PHP_FUNCTION()
2235 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
2236 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to parse result: %s", ldap_err2string(rc)); in PHP_FUNCTION()
2378 int rc; in PHP_FUNCTION() local
2394 rc = ldap_rename_s(ld->link, dn, newrdn, newparent, deleteoldrdn, NULL, NULL); in PHP_FUNCTION()
2401 rc = ldap_modrdn2_s(ld->link, dn, newrdn, deleteoldrdn); in PHP_FUNCTION()
2404 if (rc == LDAP_SUCCESS) { in PHP_FUNCTION()
2418 int rc, protocol = LDAP_VERSION3; in PHP_FUNCTION() local
2426 if (((rc = ldap_set_option(ld->link, LDAP_OPT_PROTOCOL_VERSION, &protocol)) != LDAP_SUCCESS) || in PHP_FUNCTION()
2427 ((rc = ldap_start_tls_s(ld->link, NULL, NULL)) != LDAP_SUCCESS) in PHP_FUNCTION()
2429 php_error_docref(NULL TSRMLS_CC, E_WARNING,"Unable to start TLS: %s", ldap_err2string(rc)); in PHP_FUNCTION()
2591 int rc, myargcount = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
2627 rc = ber_flatten2(ber, &ctrl.ldctl_value, 0); in PHP_FUNCTION()
2628 if (rc == LBER_ERROR) { in PHP_FUNCTION()
2641 rc = ldap_set_option(ldap, LDAP_OPT_SERVER_CONTROLS, ctrlsp); in PHP_FUNCTION()
2642 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
2643 …ULL TSRMLS_CC, E_WARNING, "Unable to set paged results control: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()
2681 int rc, lerrcode, myargcount = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
2690 rc = ldap_parse_result(ld->link, in PHP_FUNCTION()
2699 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
2700 …rror_docref(NULL TSRMLS_CC, E_WARNING, "Unable to parse result: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()