mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
Merge branch 'w01_MDL-43503_m27_pagedldap' of https://github.com/skodak/moodle
This commit is contained in:
commit
7ad46ac29d
1 changed files with 2 additions and 7 deletions
|
@ -382,19 +382,14 @@ function ldap_stripslashes($text) {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if PHP supports LDAP paged results and we can use them (we have to use LDAP
|
* Check if we use LDAP version 3, otherwise the server cannot use them.
|
||||||
* version 3, otherwise the server doesn't use them).
|
|
||||||
*
|
*
|
||||||
* @param ldapversion integer The LDAP protocol version we use.
|
* @param ldapversion integer The LDAP protocol version we use.
|
||||||
*
|
*
|
||||||
* @return boolean true is paged results can be used, false otherwise.
|
* @return boolean true is paged results can be used, false otherwise.
|
||||||
*/
|
*/
|
||||||
function ldap_paged_results_supported($ldapversion) {
|
function ldap_paged_results_supported($ldapversion) {
|
||||||
|
if ((int)$ldapversion === 3) {
|
||||||
if (((int)$ldapversion === 3) &&
|
|
||||||
function_exists('ldap_control_paged_result') &&
|
|
||||||
function_exists('ldap_control_paged_result_response')) {
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue