5 * Class to interact with the system
8 * @author Christian Bayle
11 * This file is part of GForge.
13 * GForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * GForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with GForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 require_once $gfcommon.'include/System.class.php';
29 class NSSPGSQL extends System {
31 * Value to add to unix_uid to get unix uid
33 * @var constant $UID_ADD
38 * NSSPGSQL() - CONSTRUCTOR
46 * sysCreateUser() - Create a user
48 * @param int The user ID of the user to create
49 * @returns The return status
52 function sysCreateUser($user_id) {
57 * sysRemoveUser() - Remove a user
59 * @param int The user ID of the user to remove
60 * @returns true on success/false on failure
63 function sysRemoveUser($user_id) {
68 * Group management functions
72 * sysCheckGroup() - Check for the existence of a group
74 * @param int The ID of the group to check
75 * @returns true on success/false on error
78 function sysCheckGroup($group_id) {
79 $group =& group_get_object($group_id);
87 * sysCreateGroup() - Create a group
89 * @param int The ID of the group to create
90 * @returns true on success/false on error
93 function sysCreateGroup($group_id) {
94 $group = &group_get_object($group_id);
104 // c-file-style: "bsd"