Class Group
System group manager.
Provides tools for managing user defined groups on the system. For now, Only the Group->Exists() method uses both LDAP and Posix groups. All other public methods refer to LDAP groups only.
Groups have been segregated into three distinct ID rangs:
- System groups: 0-499
- User groups: 500-60000
- Normal groups: 60001-62000
Located in /api/Group.class.php (line 117)
Engine | --Group
Inherited Variables
Inherited from Engine
Engine::$errors
Adds a group to the system.
- string $description: group description
- $members
Adds a member to a group.
- string $username: username
Deletes a group from the system.
Deletes a member from a group.
- string $username: username
Checks the existence of the group.
Returns the group description.
Returns the group ID.
Returns a list of group members.
Validation routine for group description.
- string $description: description
Validation routine for group name.
Groups must begin with a letter and allow underscores.
- string $groupname: groupname
Sets the group description.
- string $description: group description
Sets the group member list.
- array $members: array of group members
Group constructor.
- string $groupname: group name.
- Engine::__construct()
- Engine constructor.
Creates an LDAP handle.
Loads group from LDAP.
Loads group from Posix.
Loads group from information.
This method loads group information from LDAP if the group exists, otherwise, group information is loaded from /etc/groups.
Loads group list arrays to help with mapping usernames to DNs.
RFC2307bis lists a group of users by DN (which is a CN/common name in our implementation). Since we prefer seeing a group listed by usernames, this method is used to create two hash arrays to map the usernames and DNs.
Inherited Methods
Inherited From Engine
Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()
CONSTANT_ALL_USERS_GROUP
= 'allusers'
(line 140)
CONSTANT_ALL_USERS_GROUP_ID
= '400'
(line 141)
CONSTANT_ALL_WINDOWS_USERS_GROUP
= 'domain_users'
(line 139)
CONSTANT_NO_MEMBERS_DN
= 'No Members'
(line 138)
CONSTANT_NO_MEMBERS_USERNAME
= 'nomembers'
(line 137)
FILE_CONFIG
= '/etc/group'
(line 131)
GID_RANGE_GROUP_MAX
= '62000'
(line 147)
GID_RANGE_GROUP_MIN
= '60001'
(line 146)
GID_RANGE_GROUP_WINDOWS_MAX
= '20000000'
(line 149)
GID_RANGE_GROUP_WINDOWS_MIN
= '1000000'
(line 148)
GID_RANGE_SYSTEM_MAX
= '499'
(line 143)
GID_RANGE_SYSTEM_MIN
= '0'
(line 142)
GID_RANGE_USER_MAX
= '60000'
(line 145)
GID_RANGE_USER_MIN
= '500'
(line 144)
LOG_TAG
= 'group'
(line 130)
TYPE_GROUP
= 'group'
(line 134)
TYPE_INVALID
= 'invalid'
(line 136)
TYPE_SYSTEM
= 'system'
(line 132)
TYPE_USER
= 'user'
(line 133)
TYPE_WINDOWS_GROUP
= 'wingroup'
(line 135)
Inherited Constants
Inherited from Engine
Engine::COMMAND_API
Documentation generated on Fri, 28 Aug 2009 20:32:10 -0400 by phpDocumentor 1.3.2

