\n";
// group members
echo "\n";
$members = $grp_info["memberuid"];
if (!$members) $members = array();
array_shift($members);
sort($members);
echo "\n";
echo " | \n";
// add/remove users
echo "\n";
echo "\n";
echo "
\n";
echo "\" name=\"remove\">\n";
echo " | \n";
// available users
echo "\n";
// search available users
$DN = $_SESSION['config']->get_UserSuffix();
if ($_SESSION['config']->is_samba3()) {
$filter = "(&(objectClass=posixAccount)(objectClass=sambaSamAccount))";
}
else $filter = "(&(objectClass=posixAccount)(objectClass=sambaAccount))";
$attrs = array("uid");
$sr = @ldap_search($_SESSION["ldap"]->server(), $DN, $filter, $attrs);
if ($sr) {
$usr_info = ldap_get_entries($_SESSION["ldap"]->server, $sr);
ldap_free_result($sr);
// delete count entry
array_shift($usr_info);
echo "\n";
}
// show empty box if no users were found
else {
echo "\n";
}
echo " | \n";
echo "
\n";
echo "