Lines Matching refs:ldap

92 ZEND_DECLARE_MODULE_GLOBALS(ldap)
93 static PHP_GINIT_FUNCTION(ldap);
102 ZEND_GET_MODULE(ldap) in ZEND_GET_MODULE() argument
813 static PHP_GINIT_FUNCTION(ldap) in PHP_INI_END()
823 PHP_MINIT_FUNCTION(ldap) in PHP_MINIT_FUNCTION() argument
1069 PHP_MSHUTDOWN_FUNCTION(ldap) in PHP_MSHUTDOWN_FUNCTION() argument
1077 PHP_MINFO_FUNCTION(ldap) in PHP_MINFO_FUNCTION() argument
1127 LDAP *ldap = NULL; in PHP_FUNCTION() local
1173 rc = ldap_initialize(&ldap, url); in PHP_FUNCTION()
1178 ldap = ldap_init(host, port); in PHP_FUNCTION()
1179 if (ldap == NULL) { in PHP_FUNCTION()
1195 if (ldap == NULL) { in PHP_FUNCTION()
1201 if (ldap_init_SSL(&ldap->ld_sb, wallet, walletpasswd, authmode)) { in PHP_FUNCTION()
1209 ld->link = ldap; in PHP_FUNCTION()
1216 static int _get_lderrno(LDAP *ldap) in _get_lderrno() argument
1222 ldap_get_option(ldap, LDAP_OPT_ERROR_NUMBER, &lderr); in _get_lderrno()
1225 return ldap->ld_errno; in _get_lderrno()
1231 static void _set_lderrno(LDAP *ldap, int lderr) in _set_lderrno() argument
1235 ldap_set_option(ldap, LDAP_OPT_ERROR_NUMBER, &lderr); in _set_lderrno()
1237 ldap->ld_errno = lderr; in _set_lderrno()
1515 static void php_set_opts(LDAP *ldap, int sizelimit, int timelimit, int deref, int *old_sizelimit, i… in php_set_opts() argument
1520 ldap_get_option(ldap, LDAP_OPT_SIZELIMIT, old_sizelimit); in php_set_opts()
1521 ldap_set_option(ldap, LDAP_OPT_SIZELIMIT, &sizelimit); in php_set_opts()
1523 *old_sizelimit = ldap->ld_sizelimit; in php_set_opts()
1524 ldap->ld_sizelimit = sizelimit; in php_set_opts()
1531 ldap_get_option(ldap, LDAP_OPT_TIMELIMIT, old_timelimit); in php_set_opts()
1532 ldap_set_option(ldap, LDAP_OPT_TIMELIMIT, &timelimit); in php_set_opts()
1534 *old_timelimit = ldap->ld_timelimit; in php_set_opts()
1535 ldap->ld_timelimit = timelimit; in php_set_opts()
1542 ldap_get_option(ldap, LDAP_OPT_DEREF, old_deref); in php_set_opts()
1543 ldap_set_option(ldap, LDAP_OPT_DEREF, &deref); in php_set_opts()
1545 *old_deref = ldap->ld_deref; in php_set_opts()
1546 ldap->ld_deref = deref; in php_set_opts()
1961 LDAP *ldap; in PHP_FUNCTION() local
1979 ldap = ld->link; in PHP_FUNCTION()
1980 num_entries = ldap_count_entries(ldap, ldap_result->result); in PHP_FUNCTION()
1989 ldap_result_entry = ldap_first_entry(ldap, ldap_result->result); in PHP_FUNCTION()
2000 attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber); in PHP_FUNCTION()
2003 ldap_value = ldap_get_values_len(ldap, ldap_result_entry, attribute); in PHP_FUNCTION()
2022 attribute = ldap_next_attribute(ldap, ldap_result_entry, ber); in PHP_FUNCTION()
2031 dn = ldap_get_dn(ldap, ldap_result_entry); in PHP_FUNCTION()
2046 ldap_result_entry = ldap_next_entry(ldap, ldap_result_entry); in PHP_FUNCTION()
3252 LDAP *ldap; in PHP_FUNCTION() local
3260 ldap = NULL; in PHP_FUNCTION()
3264 ldap = ld->link; in PHP_FUNCTION()
3300 if (ldap_set_option(ldap, option, &val)) { in PHP_FUNCTION()
3312 if (ldap_set_option(ldap, LDAP_OPT_NETWORK_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3323 if (ldap_set_option(ldap, LDAP_X_OPT_CONNECT_TIMEOUT, &timeout)) { in PHP_FUNCTION()
3336 if (ldap_set_option(ldap, LDAP_OPT_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3375 if (ldap_set_option(ldap, option, ZSTR_VAL(val))) { in PHP_FUNCTION()
3392 if (ldap_set_option(ldap, option, val)) { in PHP_FUNCTION()
3408 ctrls = _php_ldap_controls_from_array(ldap, newval, 3); in PHP_FUNCTION()
3413 rc = ldap_set_option(ldap, option, ctrls); in PHP_FUNCTION()
3807 int _ldap_rebind_proc(LDAP *ldap, const char *url, ber_tag_t req, ber_int_t msgid, void *params) in _ldap_rebind_proc() argument
4303 PHP_MINIT(ldap),
4304 PHP_MSHUTDOWN(ldap),
4307 PHP_MINFO(ldap),
4309 PHP_MODULE_GLOBALS(ldap),
4310 PHP_GINIT(ldap),