Lines Matching refs:rc

148 		int expire = 0, grace = 0, rc;  in _php_ldap_control_to_array()  local
152 rc = ldap_parse_passwordpolicy_control(ld, ctrl, &expire, &grace, &pperr); in _php_ldap_control_to_array()
153 if ( rc == LDAP_SUCCESS ) { in _php_ldap_control_to_array()
166 int lestimated, rc; in _php_ldap_control_to_array() local
172 rc = ldap_parse_pageresponse_control(ld, ctrl, &lestimated, &lcookie); in _php_ldap_control_to_array()
175 rc = -1; in _php_ldap_control_to_array()
178 if ( rc == LDAP_SUCCESS ) { in _php_ldap_control_to_array()
231 int errcode, rc; in _php_ldap_control_to_array() local
235 rc = ldap_parse_sortresponse_control(ld, ctrl, &errcode, &attribute); in _php_ldap_control_to_array()
237 rc = -1; in _php_ldap_control_to_array()
239 if ( rc == LDAP_SUCCESS ) { in _php_ldap_control_to_array()
251 int target, count, errcode, rc; in _php_ldap_control_to_array() local
256 rc = ldap_parse_vlvresponse_control(ld, ctrl, &target, &count, &context, &errcode); in _php_ldap_control_to_array()
258 rc = -1; in _php_ldap_control_to_array()
260 if ( rc == LDAP_SUCCESS ) { in _php_ldap_control_to_array()
286 int control_iscritical = 0, rc = LDAP_SUCCESS; in _php_ldap_control_from_array() local
316 rc = -1; in _php_ldap_control_from_array()
331 rc = -1; in _php_ldap_control_from_array()
339 rc = ldap_create_page_control_value(ld, pagesize, &cookie, &control_value); in _php_ldap_control_from_array()
340 if (rc != LDAP_SUCCESS) { in _php_ldap_control_from_array()
341 …(NULL, E_WARNING, "Failed to create paged result control value: %s (%d)", ldap_err2string(rc), rc); in _php_ldap_control_from_array()
347 rc = -1; in _php_ldap_control_from_array()
352 rc = -1; in _php_ldap_control_from_array()
361 rc = ldap_create_assertion_control_value(ld, ZSTR_VAL(assert), &control_value); in _php_ldap_control_from_array()
362 if (rc != LDAP_SUCCESS) { in _php_ldap_control_from_array()
363 …docref(NULL, E_WARNING, "Failed to create assert control value: %s (%d)", ldap_err2string(rc), rc); in _php_ldap_control_from_array()
370 rc = -1; in _php_ldap_control_from_array()
375 rc = -1; in _php_ldap_control_from_array()
380 rc = -1; in _php_ldap_control_from_array()
384 rc = -1; in _php_ldap_control_from_array()
387 rc = -1; in _php_ldap_control_from_array()
394 rc = -1; in _php_ldap_control_from_array()
400 rc = -1; in _php_ldap_control_from_array()
413 rc = -1; in _php_ldap_control_from_array()
420 rc = -1; in _php_ldap_control_from_array()
431 rc = -1; in _php_ldap_control_from_array()
437 rc = -1; in _php_ldap_control_from_array()
456 rc = -1; in _php_ldap_control_from_array()
462 rc = -1; in _php_ldap_control_from_array()
469 rc = -1; in _php_ldap_control_from_array()
478 rc = -1; in _php_ldap_control_from_array()
496 rc = ldap_create_sort_control_value(ld, sort_keys, &control_value); in _php_ldap_control_from_array()
497 if (rc != LDAP_SUCCESS) { in _php_ldap_control_from_array()
498 …r_docref(NULL, E_WARNING, "Failed to create sort control value: %s (%d)", ldap_err2string(rc), rc); in _php_ldap_control_from_array()
509 rc = -1; in _php_ldap_control_from_array()
517 rc = -1; in _php_ldap_control_from_array()
525 rc = -1; in _php_ldap_control_from_array()
537 rc = -1; in _php_ldap_control_from_array()
542 rc = -1; in _php_ldap_control_from_array()
550 rc = -1; in _php_ldap_control_from_array()
562 rc = ldap_create_vlv_control_value(ld, &vlvInfo, &control_value); in _php_ldap_control_from_array()
563 if (rc != LDAP_SUCCESS) { in _php_ldap_control_from_array()
564 …or_docref(NULL, E_WARNING, "Failed to create VLV control value: %s (%d)", ldap_err2string(rc), rc); in _php_ldap_control_from_array()
568 rc = -1; in _php_ldap_control_from_array()
572 if (rc == LDAP_SUCCESS) { in _php_ldap_control_from_array()
573 rc = ldap_control_create(ZSTR_VAL(control_oid), control_iscritical, &control_value, 1, ctrl); in _php_ldap_control_from_array()
614 if (rc == LDAP_SUCCESS) { in _php_ldap_control_from_array()
1025 int rc = LDAP_SUCCESS; in PHP_FUNCTION() local
1043 rc = ldap_initialize(&ldap, url); in PHP_FUNCTION()
1058 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
1060 php_error_docref(NULL, E_WARNING, "Could not create session handle: %s", ldap_err2string(rc)); in PHP_FUNCTION()
1120 int rc; in PHP_FUNCTION() local
1150 rc = ldap_sasl_bind_s(ld->link, ldap_bind_dn, LDAP_SASL_SIMPLE, &cred, in PHP_FUNCTION()
1154 rc = ldap_simple_bind_s(ld->link, ldap_bind_dn, ldap_bind_pw); in PHP_FUNCTION()
1157 if ( rc != LDAP_SUCCESS) { in PHP_FUNCTION()
1158 php_error_docref(NULL, E_WARNING, "Unable to bind to server: %s", ldap_err2string(rc)); in PHP_FUNCTION()
1176 int rc; in PHP_FUNCTION() local
1214 rc = ldap_sasl_bind(ld->link, ldap_bind_dn, LDAP_SASL_SIMPLE, &cred, in PHP_FUNCTION()
1216 if (rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
1217 php_error_docref(NULL, E_WARNING, "Unable to bind to server: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()
1222 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
1223 if (rc == -1) { in PHP_FUNCTION()
1337 size_t rc, dn_len, passwd_len, mech_len, realm_len, authc_id_len, authz_id_len, props_len; in PHP_FUNCTION() local
1354rc = ldap_sasl_interactive_bind_s(ld->link, binddn, ctx->mech, NULL, NULL, LDAP_SASL_QUIET, _php_s… in PHP_FUNCTION()
1355 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
1356 php_error_docref(NULL, E_WARNING, "Unable to bind to server: %s", ldap_err2string(rc)); in PHP_FUNCTION()
2418 int rc, msgid; in php_ldap_do_delete() local
2438 rc = ldap_delete_ext(ld->link, dn, lserverctrls, NULL, &msgid); in php_ldap_do_delete()
2440 rc = ldap_delete_ext_s(ld->link, dn, lserverctrls, NULL); in php_ldap_do_delete()
2442 if (rc != LDAP_SUCCESS) { in php_ldap_do_delete()
2443 php_error_docref(NULL, E_WARNING, "Delete: %s", ldap_err2string(rc)); in php_ldap_do_delete()
2447 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_delete()
2448 if (rc == -1) { in php_ldap_do_delete()
3271 int rc; in PHP_FUNCTION() local
3283 rc = ldap_set_option(ldap, option, ctrls); in PHP_FUNCTION()
3285 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
3307 int rc, lerrcode, myargcount = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
3321 rc = ldap_parse_result(ld->link, ldap_result, &lerrcode, in PHP_FUNCTION()
3327 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
3328 php_error_docref(NULL, E_WARNING, "Unable to parse result: %s", ldap_err2string(rc)); in PHP_FUNCTION()
3381 int rc, myargcount = ZEND_NUM_ARGS(); in PHP_FUNCTION() local
3395 rc = ldap_parse_extended_result(ld->link, ldap_result, in PHP_FUNCTION()
3399 if (rc != LDAP_SUCCESS) { in PHP_FUNCTION()
3400 …rror_docref(NULL, E_WARNING, "Unable to parse extended operation result: %s", ldap_err2string(rc)); in PHP_FUNCTION()
3567 int rc, msgid; in php_ldap_do_rename() local
3594 rc = ldap_rename(ld->link, dn, newrdn, newparent, deleteoldrdn, lserverctrls, NULL, &msgid); in php_ldap_do_rename()
3596 rc = ldap_rename_s(ld->link, dn, newrdn, newparent, deleteoldrdn, lserverctrls, NULL); in php_ldap_do_rename()
3612 rc = ldap_modrdn2_s(ld->link, dn, newrdn, deleteoldrdn); in php_ldap_do_rename()
3615 if (rc != LDAP_SUCCESS) { in php_ldap_do_rename()
3618 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_rename()
3619 if (rc == -1) { in php_ldap_do_rename()
3660 int rc, protocol = LDAP_VERSION3; in PHP_FUNCTION() local
3670 if (((rc = ldap_set_option(ld->link, LDAP_OPT_PROTOCOL_VERSION, &protocol)) != LDAP_SUCCESS) || in PHP_FUNCTION()
3671 ((rc = ldap_start_tls_s(ld->link, NULL, NULL)) != LDAP_SUCCESS) in PHP_FUNCTION()
3673 php_error_docref(NULL, E_WARNING,"Unable to start TLS: %s", ldap_err2string(rc)); in PHP_FUNCTION()
3899 int rc, msgid; in PHP_FUNCTION() local
3926 rc = ldap_extended_operation_s(ld->link, ZSTR_VAL(reqoid), in PHP_FUNCTION()
3932 if (rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
3933 …LL, E_WARNING, "Extended operation %s failed: %s (%d)", ZSTR_VAL(reqoid), ldap_err2string(rc), rc); in PHP_FUNCTION()
3960 rc = ldap_extended_operation(ld->link, ZSTR_VAL(reqoid), in PHP_FUNCTION()
3965 if (rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
3966 …LL, E_WARNING, "Extended operation %s failed: %s (%d)", ZSTR_VAL(reqoid), ldap_err2string(rc), rc); in PHP_FUNCTION()
3971 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
3972 if (rc == -1) { in PHP_FUNCTION()
4001 int rc, myargcount = ZEND_NUM_ARGS(), msgid, err; in PHP_FUNCTION() local
4021 rc = ldap_passwd(ld->link, &luser, in PHP_FUNCTION()
4031 if (rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
4032 …cref(NULL, E_WARNING, "Passwd modify extended operation failed: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()
4037 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
4038 if ((rc < 0) || !ldap_res) { in PHP_FUNCTION()
4039 rc = _get_lderrno(ld->link); in PHP_FUNCTION()
4040 …cref(NULL, E_WARNING, "Passwd modify extended operation failed: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()
4045 rc = ldap_parse_passwd(ld->link, ldap_res, &lgenpasswd); in PHP_FUNCTION()
4046 if( rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
4047 …cref(NULL, E_WARNING, "Passwd modify extended operation failed: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()
4052rc = ldap_parse_result(ld->link, ldap_res, &err, NULL, &errmsg, NULL, (myargcount > 4 ? &lserverct… in PHP_FUNCTION()
4053 if( rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
4054 …cref(NULL, E_WARNING, "Passwd modify extended operation failed: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()
4098 int rc; in PHP_FUNCTION() local
4109 rc = ldap_whoami_s(ld->link, &lauthzid, NULL, NULL); in PHP_FUNCTION()
4110 if (rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
4111 …rror_docref(NULL, E_WARNING, "Whoami extended operation failed: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()
4136 int rc; in PHP_FUNCTION() local
4148 rc = ldap_refresh_s(ld->link, &ldn, lttl, &newttl, NULL, NULL); in PHP_FUNCTION()
4149 if (rc != LDAP_SUCCESS ) { in PHP_FUNCTION()
4150 …ror_docref(NULL, E_WARNING, "Refresh extended operation failed: %s (%d)", ldap_err2string(rc), rc); in PHP_FUNCTION()