The group name is missing.

The group name is invalid.

$value) { if ($key != 'count') { $this_member = preg_replace("/^.*?=(.*?),.*/", "$1", $value); array_push($current_members, $this_member); } } } $all_accounts = ldap_get_user_list($ldap_connection); $all_people = array(); foreach ($all_accounts as $this_person => $attrs) { array_push($all_people, $this_person); } $non_members = array_diff($all_people,$current_members); if (isset($_POST["update_members"])) { $updated_membership = array(); foreach ($_POST as $index => $member) { if (is_numeric($index) and preg_match("/$USERNAME_REGEX/",$member)) { array_push($updated_membership,$member); } } $members_to_del = array_diff($current_members,$updated_membership); $members_to_add = array_diff($updated_membership,$current_members); foreach ($members_to_del as $this_member) { ldap_delete_member_from_group($ldap_connection,$group_cn,$this_member); } foreach ($members_to_add as $this_member) { ldap_add_member_to_group($ldap_connection,$group_cn,$this_member); } $non_members = array_diff($all_people,$updated_membership); $group_members = $updated_membership; ?>

Members
    $member\n"; } ?>
Available accounts
    $nonmember\n"; } ?>