3 * FusionForge system users integration
5 * Copyright 2004, Christian Bayle
7 * This file is part of FusionForge. FusionForge is free software;
8 * you can redistribute it and/or modify it under the terms of the
9 * GNU General Public License as published by the Free Software
10 * Foundation; either version 2 of the Licence, or (at your option)
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 require_once $gfcommon.'include/System.class.php';
25 class NSSPGSQL extends System {
27 * Value to add to unix_uid to get unix uid
29 * @var constant $UID_ADD
34 * NSSPGSQL() - CONSTRUCTOR
42 * sysCreateUser() - Create a user
44 * @param int The user ID of the user to create
45 * @returns The return status
48 function sysCreateUser($user_id) {
53 * sysRemoveUser() - Remove a user
55 * @param int The user ID of the user to remove
56 * @returns true on success/false on failure
59 function sysRemoveUser($user_id) {
64 * Group management functions
68 * sysCheckGroup() - Check for the existence of a group
70 * @param int The ID of the group to check
71 * @returns true on success/false on error
74 function sysCheckGroup($group_id) {
75 $group = group_get_object($group_id);
83 * sysCreateGroup() - Create a group
85 * @param int The ID of the group to create
86 * @returns true on success/false on error
89 function sysCreateGroup($group_id) {
90 $group = group_get_object($group_id);
100 // c-file-style: "bsd"