From ecc473303fbee5f5466d2477157b5fd682357003 Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Thu, 27 Sep 2007 14:40:23 +0000 Subject: Reorganized LSM Webinterface git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1353 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/lib/ldap.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ldap-site-mngmt/webinterface/lib/ldap.inc.php') 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"; -- cgit v1.2.3-55-g7522