summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/lib/ldap.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/lib/ldap.inc.php')
-rw-r--r--ldap-site-mngmt/webinterface/lib/ldap.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldap-site-mngmt/webinterface/lib/ldap.inc.php b/ldap-site-mngmt/webinterface/lib/ldap.inc.php
index 292529a6..f7f6be07 100644
--- a/ldap-site-mngmt/webinterface/lib/ldap.inc.php
+++ b/ldap-site-mngmt/webinterface/lib/ldap.inc.php
@@ -404,6 +404,10 @@ function get_hosts($auDN,$attributes)
{
global $ds, $suffix, $ldapError;
+ #if ( $sortattr == ""){
+ # $sortattr = "hostname";
+ #}
+
if(!($result = uniLdapSearch($ds, "cn=computers,".$auDN, "(objectclass=Host)", $attributes, "hostname", "sub", 0, 0))) {
# redirect(5, "", $ldapError, FALSE);
echo "no search";