Lines Matching refs:ld

106 	ldap_linkdata *ld = (ldap_linkdata *)rsrc->ptr;  in ZEND_GET_MODULE()  local
108 ldap_unbind_ext(ld->link, NULL, NULL); in ZEND_GET_MODULE()
110 zval_ptr_dtor(&ld->rebindproc); in ZEND_GET_MODULE()
113 efree(ld); in ZEND_GET_MODULE()
139 static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array, int request) in _php_ldap_control_to_array() argument
155 rc = ldap_parse_passwordpolicy_control(ld, ctrl, &expire, &grace, &pperr); in _php_ldap_control_to_array()
175 rc = ldap_parse_pageresponse_control(ld, ctrl, &lestimated, &lcookie); in _php_ldap_control_to_array()
238 rc = ldap_parse_sortresponse_control(ld, ctrl, &errcode, &attribute); in _php_ldap_control_to_array()
259 rc = ldap_parse_vlvresponse_control(ld, ctrl, &target, &count, &context, &errcode); in _php_ldap_control_to_array()
285 static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* array) in _php_ldap_control_from_array() argument
342 rc = ldap_create_page_control_value(ld, pagesize, &cookie, &control_value); in _php_ldap_control_from_array()
361 ldap_set_option(ld, LDAP_OPT_RESULT_CODE, &success); in _php_ldap_control_from_array()
364 rc = ldap_create_assertion_control_value(ld, ZSTR_VAL(assert), &control_value); in _php_ldap_control_from_array()
499 rc = ldap_create_sort_control_value(ld, sort_keys, &control_value); in _php_ldap_control_from_array()
565 rc = ldap_create_vlv_control_value(ld, &vlvInfo, &control_value); in _php_ldap_control_from_array()
626 static void _php_ldap_controls_to_array(LDAP *ld, LDAPControl** ctrls, zval* array, int request) in _php_ldap_controls_to_array() argument
637 _php_ldap_control_to_array(ld, *ctrlp, &tmp1, request); in _php_ldap_controls_to_array()
644 static LDAPControl** _php_ldap_controls_from_array(LDAP *ld, zval* array) in _php_ldap_controls_from_array() argument
662 if (_php_ldap_control_from_array(ld, ctrlp, ctrlarray) == LDAP_SUCCESS) { in _php_ldap_controls_from_array()
1021 ldap_linkdata *ld; in PHP_FUNCTION() local
1047 ld = ecalloc(1, sizeof(ldap_linkdata)); in PHP_FUNCTION()
1056 efree(ld); in PHP_FUNCTION()
1075 efree(ld); in PHP_FUNCTION()
1084 efree(ld); in PHP_FUNCTION()
1091 efree(ld); in PHP_FUNCTION()
1097 efree(ld); in PHP_FUNCTION()
1104 ld->link = ldap; in PHP_FUNCTION()
1105 RETURN_RES(zend_register_resource(ld, le_link)); in PHP_FUNCTION()
1155 ldap_linkdata *ld; in PHP_FUNCTION() local
1162 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1167 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1173 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1186 rc = ldap_sasl_bind_s(ld->link, ldap_bind_dn, LDAP_SASL_SIMPLE, &cred, in PHP_FUNCTION()
1190 rc = ldap_simple_bind_s(ld->link, ldap_bind_dn, ldap_bind_pw); in PHP_FUNCTION()
1210 ldap_linkdata *ld; in PHP_FUNCTION() local
1219 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1224 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1230 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1236 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in PHP_FUNCTION()
1251 rc = ldap_sasl_bind(ld->link, ldap_bind_dn, LDAP_SASL_SIMPLE, &cred, in PHP_FUNCTION()
1259 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
1290 static php_ldap_bictx *_php_sasl_setdefs(LDAP *ld, char *sasl_mech, char *sasl_realm, char *sasl_au… in _php_sasl_setdefs() argument
1302 ldap_get_option(ld, LDAP_OPT_X_SASL_MECH, &ctx->mech); in _php_sasl_setdefs()
1305 ldap_get_option(ld, LDAP_OPT_X_SASL_REALM, &ctx->realm); in _php_sasl_setdefs()
1308 ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHCID, &ctx->authcid); in _php_sasl_setdefs()
1311 ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHZID, &ctx->authzid); in _php_sasl_setdefs()
1333 static int _php_sasl_interact(LDAP *ld, unsigned flags, void *defaults, void *in) in _php_sasl_interact() argument
1369 ldap_linkdata *ld; in PHP_FUNCTION() local
1384 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1388 ctx = _php_sasl_setdefs(ld->link, sasl_mech, sasl_realm, sasl_authc_id, passwd, sasl_authz_id); in PHP_FUNCTION()
1391 ldap_set_option(ld->link, LDAP_OPT_X_SASL_SECPROPS, props); in PHP_FUNCTION()
1394 …rc = ldap_sasl_interactive_bind_s(ld->link, binddn, ctx->mech, NULL, NULL, LDAP_SASL_QUIET, _php_s… in PHP_FUNCTION()
1411 ldap_linkdata *ld; in PHP_FUNCTION() local
1417 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1473 ldap_linkdata *ld = NULL; in php_ldap_do_search() local
1573 ld = (ldap_linkdata *) zend_fetch_resource_ex(entry, "ldap link", le_link); in php_ldap_do_search()
1574 if (ld == NULL) { in php_ldap_do_search()
1600 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in php_ldap_do_search()
1607 …php_set_opts(ld->link, ldap_sizelimit, ldap_timelimit, ldap_deref, &old_ldap_sizelimit, &old_ldap_… in php_ldap_do_search()
1610 …ldap_search_ext(ld->link, ZSTR_VAL(ldap_base_dn), scope, ZSTR_VAL(ldap_filter), ldap_attrs, ldap_a… in php_ldap_do_search()
1611 lds[i] = ld; in php_ldap_do_search()
1646 ld = (ldap_linkdata *) zend_fetch_resource_ex(link, "ldap link", le_link); in php_ldap_do_search()
1647 if (ld == NULL) { in php_ldap_do_search()
1653 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in php_ldap_do_search()
1660 …php_set_opts(ld->link, ldap_sizelimit, ldap_timelimit, ldap_deref, &old_ldap_sizelimit, &old_ldap_… in php_ldap_do_search()
1663 …errno = ldap_search_ext_s(ld->link, ZSTR_VAL(ldap_base_dn), scope, ZSTR_VAL(ldap_filter), ldap_att… in php_ldap_do_search()
1696 if (ld) { in php_ldap_do_search()
1698 …php_set_opts(ld->link, old_ldap_sizelimit, old_ldap_timelimit, old_ldap_deref, &ldap_sizelimit, &l… in php_ldap_do_search()
1767 ldap_linkdata *ld; in PHP_FUNCTION() local
1774 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1782 RETURN_LONG(ldap_count_entries(ld->link, ldap_result)); in PHP_FUNCTION()
1791 ldap_linkdata *ld; in PHP_FUNCTION() local
1799 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1807 if ((entry = ldap_first_entry(ld->link, ldap_result)) == NULL) { in PHP_FUNCTION()
1824 ldap_linkdata *ld; in PHP_FUNCTION() local
1832 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1839 if ((entry_next = ldap_next_entry(ld->link, resultentry->data)) == NULL) { in PHP_FUNCTION()
1858 ldap_linkdata *ld; in PHP_FUNCTION() local
1871 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1878 ldap = ld->link; in PHP_FUNCTION()
1957 ldap_linkdata *ld; in PHP_FUNCTION() local
1966 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1974 if ((attribute = ldap_first_attribute(ld->link, resultentry->data, &resultentry->ber)) == NULL) { in PHP_FUNCTION()
1990 ldap_linkdata *ld; in PHP_FUNCTION() local
1999 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2012 if ((attribute = ldap_next_attribute(ld->link, resultentry->data, resultentry->ber)) == NULL) { in PHP_FUNCTION()
2035 ldap_linkdata *ld; in PHP_FUNCTION() local
2046 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2057 attribute = ldap_first_attribute(ld->link, resultentry->data, &ber); in PHP_FUNCTION()
2059 ldap_value = ldap_get_values_len(ld->link, resultentry->data, attribute); in PHP_FUNCTION()
2076 attribute = ldap_next_attribute(ld->link, resultentry->data, ber); in PHP_FUNCTION()
2093 ldap_linkdata *ld; in PHP_FUNCTION() local
2104 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2112 if ((ldap_value_len = ldap_get_values_len(ld->link, resultentry->data, attr)) == NULL) { in PHP_FUNCTION()
2113 …LL, E_WARNING, "Cannot get the value(s) of attribute %s", ldap_err2string(_get_lderrno(ld->link))); in PHP_FUNCTION()
2135 ldap_linkdata *ld; in PHP_FUNCTION() local
2143 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2151 text = ldap_get_dn(ld->link, resultentry->data); in PHP_FUNCTION()
2231 ldap_linkdata *ld; in php_ldap_do_modify() local
2247 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in php_ldap_do_modify()
2333 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in php_ldap_do_modify()
2343 i = ldap_add_ext(ld->link, dn, ldap_mods, lserverctrls, NULL, &msgid); in php_ldap_do_modify()
2345 i = ldap_add_ext_s(ld->link, dn, ldap_mods, lserverctrls, NULL); in php_ldap_do_modify()
2351 i = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_modify()
2363 i = ldap_modify_ext(ld->link, dn, ldap_mods, lserverctrls, NULL, &msgid); in php_ldap_do_modify()
2365 i = ldap_modify_ext_s(ld->link, dn, ldap_mods, lserverctrls, NULL); in php_ldap_do_modify()
2371 i = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_modify()
2476 ldap_linkdata *ld; in php_ldap_do_delete() local
2487 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in php_ldap_do_delete()
2492 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in php_ldap_do_delete()
2500 rc = ldap_delete_ext(ld->link, dn, lserverctrls, NULL, &msgid); in php_ldap_do_delete()
2502 rc = ldap_delete_ext_s(ld->link, dn, lserverctrls, NULL); in php_ldap_do_delete()
2509 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_delete()
2595 ldap_linkdata *ld; in PHP_FUNCTION() local
2636 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2861 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in PHP_FUNCTION()
2869 if ((i = ldap_modify_ext_s(ld->link, dn, ldap_mods, lserverctrls, NULL)) != LDAP_SUCCESS) { in PHP_FUNCTION()
2913 ldap_linkdata *ld; in PHP_FUNCTION() local
2919 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2923 RETURN_LONG(_get_lderrno(ld->link)); in PHP_FUNCTION()
2946 ldap_linkdata *ld; in PHP_FUNCTION() local
2953 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2957 ld_errno = _get_lderrno(ld->link); in PHP_FUNCTION()
2971 ldap_linkdata *ld; in PHP_FUNCTION() local
2980 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2985 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in PHP_FUNCTION()
2995 errno = ldap_compare_ext_s(ld->link, dn, attr, &lvalue, lserverctrls, NULL); in PHP_FUNCTION()
3025 ldap_linkdata *ld; in PHP_FUNCTION() local
3034 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3044 …if (ldap_sort_entries(ld->link, (LDAPMessage **) &le->ptr, sflen ? sortfilter : NULL, strcmp) != L… in PHP_FUNCTION()
3059 ldap_linkdata *ld; in PHP_FUNCTION() local
3066 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3101 if (ldap_get_option(ld->link, option, &val)) { in PHP_FUNCTION()
3112 if (ldap_get_option(ld->link, LDAP_OPT_NETWORK_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3130 if (ldap_get_option(ld->link, LDAP_X_OPT_CONNECT_TIMEOUT, &timeout)) { in PHP_FUNCTION()
3142 if (ldap_get_option(ld->link, LDAP_OPT_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3193 if (ldap_get_option(ld->link, option, &val) || val == NULL || *val == '\0') { in PHP_FUNCTION()
3208 if (ldap_get_option(ld->link, option, &ctrls) || ctrls == NULL) { in PHP_FUNCTION()
3215 _php_ldap_controls_to_array(ld->link, ctrls, retval, 1); in PHP_FUNCTION()
3233 ldap_linkdata *ld; in PHP_FUNCTION() local
3244 if ((ld = (ldap_linkdata *)zend_fetch_resource_ex(link, "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3247 ldap = ld->link; in PHP_FUNCTION()
3416 ldap_linkdata *ld; in PHP_FUNCTION() local
3427 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3435 rc = ldap_parse_result(ld->link, ldap_result, &lerrcode, in PHP_FUNCTION()
3453 _php_ldap_controls_to_array(ld->link, lserverctrls, serverctrls, 0); in PHP_FUNCTION()
3494 ldap_linkdata *ld; in PHP_FUNCTION() local
3504 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3512 rc = ldap_parse_extended_result(ld->link, ldap_result, in PHP_FUNCTION()
3553 ldap_linkdata *ld; in PHP_FUNCTION() local
3561 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3569 if ((entry = ldap_first_reference(ld->link, ldap_result)) == NULL) { in PHP_FUNCTION()
3586 ldap_linkdata *ld; in PHP_FUNCTION() local
3594 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3602 if ((entry_next = ldap_next_reference(ld->link, resultentry->data)) == NULL) { in PHP_FUNCTION()
3620 ldap_linkdata *ld; in PHP_FUNCTION() local
3628 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3636 …if (ldap_parse_reference(ld->link, resultentry->data, &lreferrals, NULL /* &serverctrls */, 0) != … in PHP_FUNCTION()
3661 ldap_linkdata *ld; in php_ldap_do_rename() local
3673 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in php_ldap_do_rename()
3683 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in php_ldap_do_rename()
3691 rc = ldap_rename(ld->link, dn, newrdn, newparent, deleteoldrdn, lserverctrls, NULL, &msgid); in php_ldap_do_rename()
3693 rc = ldap_rename_s(ld->link, dn, newrdn, newparent, deleteoldrdn, lserverctrls, NULL); in php_ldap_do_rename()
3709 rc = ldap_modrdn2_s(ld->link, dn, newrdn, deleteoldrdn); in php_ldap_do_rename()
3715 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_rename()
3759 ldap_linkdata *ld; in PHP_FUNCTION() local
3766 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3770 if (((rc = ldap_set_option(ld->link, LDAP_OPT_PROTOCOL_VERSION, &protocol)) != LDAP_SUCCESS) || in PHP_FUNCTION()
3771 ((rc = ldap_start_tls_s(ld->link, NULL, NULL)) != LDAP_SUCCESS) in PHP_FUNCTION()
3788 ldap_linkdata *ld; in _ldap_rebind_proc() local
3794 ld = (ldap_linkdata *) zend_fetch_resource_ex(cb_link, "ldap link", le_link); in _ldap_rebind_proc()
3797 if (ld == NULL || Z_ISUNDEF(ld->rebindproc)) { in _ldap_rebind_proc()
3805 …if (call_user_function_ex(EG(function_table), NULL, &ld->rebindproc, &cb_retval, 2, cb_args, 0, NU… in _ldap_rebind_proc()
3822 ldap_linkdata *ld; in PHP_FUNCTION() local
3828 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3834 if (!Z_ISUNDEF(ld->rebindproc)) { in PHP_FUNCTION()
3835 zval_ptr_dtor(&ld->rebindproc); in PHP_FUNCTION()
3836 ZVAL_UNDEF(&ld->rebindproc); in PHP_FUNCTION()
3837 ldap_set_rebind_proc(ld->link, NULL, NULL); in PHP_FUNCTION()
3851 if (Z_ISUNDEF(ld->rebindproc)) { in PHP_FUNCTION()
3852 ldap_set_rebind_proc(ld->link, _ldap_rebind_proc, (void *) link); in PHP_FUNCTION()
3854 zval_ptr_dtor(&ld->rebindproc); in PHP_FUNCTION()
3857 ZVAL_COPY(&ld->rebindproc, callback); in PHP_FUNCTION()
4008 ldap_linkdata *ld; in PHP_FUNCTION() local
4021 if ((ld = (ldap_linkdata *)zend_fetch_resource_ex(link, "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4024 ldap = ld->link; in PHP_FUNCTION()
4099 ldap_linkdata *ld; in PHP_FUNCTION() local
4110 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4118 rc = ldap_parse_result(ld->link, in PHP_FUNCTION()
4201 ldap_linkdata *ld; in PHP_FUNCTION() local
4210 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4222 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls); in PHP_FUNCTION()
4231 rc = ldap_extended_operation_s(ld->link, ZSTR_VAL(reqoid), in PHP_FUNCTION()
4267 rc = ldap_extended_operation(ld->link, ZSTR_VAL(reqoid), in PHP_FUNCTION()
4278 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
4308 ldap_linkdata *ld; in PHP_FUNCTION() local
4316 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4324 if (ldap_create_passwordpolicy_control(ld->link, &ctrl) == LDAP_SUCCESS) { in PHP_FUNCTION()
4330 rc = ldap_passwd(ld->link, &luser, in PHP_FUNCTION()
4346 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
4348 rc = _get_lderrno(ld->link); in PHP_FUNCTION()
4354 rc = ldap_parse_passwd(ld->link, ldap_res, &lgenpasswd); in PHP_FUNCTION()
4361 …rc = ldap_parse_result(ld->link, ldap_res, &err, NULL, &errmsg, NULL, (myargcount > 4 ? &lserverct… in PHP_FUNCTION()
4370 _php_ldap_controls_to_array(ld->link, lserverctrls, serverctrls, 0); in PHP_FUNCTION()
4408 ldap_linkdata *ld; in PHP_FUNCTION() local
4415 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4420 rc = ldap_whoami_s(ld->link, &lauthzid, NULL, NULL); in PHP_FUNCTION()
4446 ldap_linkdata *ld; in PHP_FUNCTION() local
4453 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4459 rc = ldap_refresh_s(ld->link, &ldn, lttl, &newttl, NULL, NULL); in PHP_FUNCTION()