Skip to content

Commit

Permalink
Migration of search function
Browse files Browse the repository at this point in the history
  • Loading branch information
coudot committed Jul 12, 2024
1 parent 9617d3d commit 2f8e76f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion htdocs/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) )
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/searchexpired.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) )
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/searchidle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) )
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/searchlocked.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) )
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/searchwillexpire.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) )
{
Expand Down

0 comments on commit 2f8e76f

Please sign in to comment.