Lines Matching refs:ldap

86 ZEND_DECLARE_MODULE_GLOBALS(ldap)
87 static PHP_GINIT_FUNCTION(ldap);
95 ZEND_GET_MODULE(ldap) in ZEND_GET_MODULE() argument
709 static PHP_GINIT_FUNCTION(ldap) in PHP_INI_END()
719 PHP_MINIT_FUNCTION(ldap) in PHP_MINIT_FUNCTION() argument
939 PHP_MSHUTDOWN_FUNCTION(ldap) in PHP_MSHUTDOWN_FUNCTION() argument
947 PHP_MINFO_FUNCTION(ldap) in PHP_MINFO_FUNCTION() argument
997 LDAP *ldap = NULL; in PHP_FUNCTION() local
1043 rc = ldap_initialize(&ldap, url); in PHP_FUNCTION()
1048 ldap = ldap_init(host, port); in PHP_FUNCTION()
1049 if (ldap == NULL) { in PHP_FUNCTION()
1065 if (ldap == NULL) { in PHP_FUNCTION()
1071 if (ldap_init_SSL(&ldap->ld_sb, wallet, walletpasswd, authmode)) { in PHP_FUNCTION()
1079 ld->link = ldap; in PHP_FUNCTION()
1087 static int _get_lderrno(LDAP *ldap) in _get_lderrno() argument
1093 ldap_get_option(ldap, LDAP_OPT_ERROR_NUMBER, &lderr); in _get_lderrno()
1096 return ldap->ld_errno; in _get_lderrno()
1102 static void _set_lderrno(LDAP *ldap, int lderr) in _set_lderrno() argument
1106 ldap_set_option(ldap, LDAP_OPT_ERROR_NUMBER, &lderr); in _set_lderrno()
1108 ldap->ld_errno = lderr; in _set_lderrno()
1386 static void php_set_opts(LDAP *ldap, int sizelimit, int timelimit, int deref, int *old_sizelimit, i… in php_set_opts() argument
1391 ldap_get_option(ldap, LDAP_OPT_SIZELIMIT, old_sizelimit); in php_set_opts()
1392 ldap_set_option(ldap, LDAP_OPT_SIZELIMIT, &sizelimit); in php_set_opts()
1394 *old_sizelimit = ldap->ld_sizelimit; in php_set_opts()
1395 ldap->ld_sizelimit = sizelimit; in php_set_opts()
1402 ldap_get_option(ldap, LDAP_OPT_TIMELIMIT, old_timelimit); in php_set_opts()
1403 ldap_set_option(ldap, LDAP_OPT_TIMELIMIT, &timelimit); in php_set_opts()
1405 *old_timelimit = ldap->ld_timelimit; in php_set_opts()
1406 ldap->ld_timelimit = timelimit; in php_set_opts()
1413 ldap_get_option(ldap, LDAP_OPT_DEREF, old_deref); in php_set_opts()
1414 ldap_set_option(ldap, LDAP_OPT_DEREF, &deref); in php_set_opts()
1416 *old_deref = ldap->ld_deref; in php_set_opts()
1417 ldap->ld_deref = deref; in php_set_opts()
1816 LDAP *ldap; in PHP_FUNCTION() local
1835 ldap = ld->link; in PHP_FUNCTION()
1836 num_entries = ldap_count_entries(ldap, ldap_result); in PHP_FUNCTION()
1845 ldap_result_entry = ldap_first_entry(ldap, ldap_result); in PHP_FUNCTION()
1856 attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber); in PHP_FUNCTION()
1859 ldap_value = ldap_get_values_len(ldap, ldap_result_entry, attribute); in PHP_FUNCTION()
1877 attribute = ldap_next_attribute(ldap, ldap_result_entry, ber); in PHP_FUNCTION()
1886 dn = ldap_get_dn(ldap, ldap_result_entry); in PHP_FUNCTION()
1901 ldap_result_entry = ldap_next_entry(ldap, ldap_result_entry); in PHP_FUNCTION()
3121 LDAP *ldap; in PHP_FUNCTION() local
3129 ldap = NULL; in PHP_FUNCTION()
3134 ldap = ld->link; in PHP_FUNCTION()
3170 if (ldap_set_option(ldap, option, &val)) { in PHP_FUNCTION()
3182 if (ldap_set_option(ldap, LDAP_OPT_NETWORK_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3193 if (ldap_set_option(ldap, LDAP_X_OPT_CONNECT_TIMEOUT, &timeout)) { in PHP_FUNCTION()
3206 if (ldap_set_option(ldap, LDAP_OPT_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3245 if (ldap_set_option(ldap, option, ZSTR_VAL(val))) { in PHP_FUNCTION()
3262 if (ldap_set_option(ldap, option, val)) { in PHP_FUNCTION()
3278 ctrls = _php_ldap_controls_from_array(ldap, newval, 3); in PHP_FUNCTION()
3283 rc = ldap_set_option(ldap, option, ctrls); in PHP_FUNCTION()
3685 int _ldap_rebind_proc(LDAP *ldap, const char *url, ber_tag_t req, ber_int_t msgid, void *params) in _ldap_rebind_proc() argument
4163 PHP_MINIT(ldap),
4164 PHP_MSHUTDOWN(ldap),
4167 PHP_MINFO(ldap),
4169 PHP_MODULE_GLOBALS(ldap),
4170 PHP_GINIT(ldap),