From 2f8e76fefabbc4c9f617c9663633886c74d2b7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Fri, 12 Jul 2024 12:05:31 +0200 Subject: [PATCH] Migration of search function --- htdocs/search.php | 2 +- htdocs/searchexpired.php | 2 +- htdocs/searchidle.php | 2 +- htdocs/searchlocked.php | 2 +- htdocs/searchwillexpire.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/search.php b/htdocs/search.php index e1bcbdb2..8a0cc4f1 100644 --- a/htdocs/search.php +++ b/htdocs/search.php @@ -29,7 +29,7 @@ # Search attributes $attributes = array(); - [$ldap,$result,$nb_entries,$entries,$size_limit_reached]=\Ltb\LtbUtil::search($ldap_filter,$attributes); + [$ldap,$result,$nb_entries,$entries,$size_limit_reached]=$ldapInstance->search($ldap_filter, $attributes, $attributes_map, $search_result_title, $search_result_sortby, $search_result_items); if ( ! empty($entries) ) { diff --git a/htdocs/searchexpired.php b/htdocs/searchexpired.php index c079ae4d..1d2cf5d6 100644 --- a/htdocs/searchexpired.php +++ b/htdocs/searchexpired.php @@ -17,7 +17,7 @@ # Search attributes $attributes = array('pwdChangedTime', 'pwdPolicySubentry'); -[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=\Ltb\LtbUtil::search($ldap_filter,$attributes); +[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=$ldapInstance->search($ldap_filter, $attributes, $attributes_map, $search_result_title, $search_result_sortby, $search_result_items); if ( ! empty($entries) ) { diff --git a/htdocs/searchidle.php b/htdocs/searchidle.php index 1bea0bdc..4570e29a 100644 --- a/htdocs/searchidle.php +++ b/htdocs/searchidle.php @@ -20,7 +20,7 @@ # Search attributes $attributes = array(); -[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=\Ltb\LtbUtil::search($ldap_filter,$attributes); +[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=$ldapInstance->search($ldap_filter, $attributes, $attributes_map, $search_result_title, $search_result_sortby, $search_result_items); if ( ! empty($entries) ) { diff --git a/htdocs/searchlocked.php b/htdocs/searchlocked.php index e9fab6bd..d358532f 100644 --- a/htdocs/searchlocked.php +++ b/htdocs/searchlocked.php @@ -15,7 +15,7 @@ # Search attributes $attributes = array('pwdAccountLockedTime', 'pwdPolicySubentry'); -[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=\Ltb\LtbUtil::search($ldap_filter,$attributes); +[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=$ldapInstance->search($ldap_filter, $attributes, $attributes_map, $search_result_title, $search_result_sortby, $search_result_items); if ( ! empty($entries) ) { diff --git a/htdocs/searchwillexpire.php b/htdocs/searchwillexpire.php index 85cfc9bc..e25f5634 100644 --- a/htdocs/searchwillexpire.php +++ b/htdocs/searchwillexpire.php @@ -17,7 +17,7 @@ # Search attributes $attributes = array('pwdChangedTime', 'pwdPolicySubentry'); -[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=\Ltb\LtbUtil::search($ldap_filter,$attributes); +[$ldap,$result,$nb_entries,$entries,$size_limit_reached]=$ldapInstance->search($ldap_filter, $attributes, $attributes_map, $search_result_title, $search_result_sortby, $search_result_items); if ( ! empty($entries) ) {