Sort LDAP user list

fixes #7693
This commit is contained in:
Matthias Jentsch 2015-02-24 12:50:57 +01:00
parent b70cda77d4
commit d4dc0177c0
2 changed files with 4 additions and 2 deletions

View File

@ -442,7 +442,7 @@ class Connection
ldap_control_paged_result($this->ds, 0);
}
return $entries; // TODO(7693): Sort entries post-processed
return $entries;
}
protected function cleanupAttributes($attrs)

View File

@ -309,7 +309,9 @@ class AdminAccountPage extends Form
}
try {
return $backend->listUsers();
$users = $backend->listUsers();
natsort ($users);
return $users;
} catch (Exception $e) {
// No need to handle anything special here. Error means no users found.
return array();