|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for ilLDAPRoleGroupMapping:Public Member Functions | |
| getInfoStrings ($a_obj_id, $a_check_type=false) | |
| Get info string for object If check info type is enabled this function will check if the info string is visible in the repository. More... | |
| assign ($a_role_id, $a_usr_id) | |
| This method is typically called from class RbacAdmin::assignUser() It checks if there is a role mapping and if the user has auth mode LDAP After these checks the user is assigned to the LDAP group. More... | |
| deleteRole ($a_role_id) | |
| Delete role. More... | |
| deassign ($a_role_id, $a_usr_id) | |
| This method is typically called from class RbacAdmin::deassignUser() It checks if there is a role mapping and if the user has auth mode LDAP After these checks the user is deassigned from the LDAP group. More... | |
| deleteUser ($a_usr_id) | |
| Delete user => deassign from all ldap groups. More... | |
Static Public Member Functions | |
| static | _getInstance () |
| Get singleton instance of this class. More... | |
Private Member Functions | |
| __construct () | |
| Singleton contructor. More... | |
| initServers () | |
| Check if there is any active server with. More... | |
| isHandledRole ($a_role_id) | |
| Check if a role is handled or not. More... | |
| isHandledUser ($a_usr_id) | |
| Check if user is ldap user. More... | |
| assignToGroup ($a_role_id, $a_usr_id) | |
| Assign user to group. More... | |
| deassignFromGroup ($a_role_id, $a_usr_id) | |
| Deassign user from group. More... | |
| checkOtherMembership ($a_usr_id, $a_role_id, $a_data) | |
| Check other membership. More... | |
| storeMembers ($a_mapping_id, $a_data) | |
| Store Members. More... | |
| readDN ($a_usr_id, $a_server_id) | |
| Read DN of user. More... | |
| getLDAPQueryInstance ($a_server_id, $a_url) | |
| Get LDAPQueryInstance. More... | |
Private Attributes | |
| $log = null | |
| $servers = null | |
| $mappings = array() | |
| $mapping_members = array() | |
| $query = array() | |
| $active_servers = false | |
| $users = [] | |
Static Private Attributes | |
| static | $instance = null |
Definition at line 34 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Singleton contructor.
@access private
Definition at line 58 of file class.ilLDAPRoleGroupMapping.php.
References $DIC, and initServers().
Here is the call graph for this function:
|
static |
Get singleton instance of this class.
@access public
Definition at line 73 of file class.ilLDAPRoleGroupMapping.php.
References $instance.
Referenced by ilObjectListGUI\__construct(), ilRbacAdmin\assignUser(), ilRbacAdmin\assignUserLimited(), ilRbacAdmin\deassignUser(), ilObjUser\delete(), ilRbacAdmin\deleteRole(), and ilInfoScreenGUI\showLDAPRoleGroupMappingInfo().
Here is the caller graph for this function:| ilLDAPRoleGroupMapping::assign | ( | $a_role_id, | |
| $a_usr_id | |||
| ) |
This method is typically called from class RbacAdmin::assignUser() It checks if there is a role mapping and if the user has auth mode LDAP After these checks the user is assigned to the LDAP group.
@access public
Definition at line 117 of file class.ilLDAPRoleGroupMapping.php.
References assignToGroup(), isHandledRole(), and isHandledUser().
Here is the call graph for this function:
|
private |
Assign user to group.
@access private
| int | role_id |
| int | user_id |
Definition at line 290 of file class.ilLDAPRoleGroupMapping.php.
References $data, getLDAPQueryInstance(), and readDN().
Referenced by assign().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Check other membership.
@access private
Definition at line 362 of file class.ilLDAPRoleGroupMapping.php.
Referenced by deassignFromGroup().
Here is the caller graph for this function:| ilLDAPRoleGroupMapping::deassign | ( | $a_role_id, | |
| $a_usr_id | |||
| ) |
This method is typically called from class RbacAdmin::deassignUser() It checks if there is a role mapping and if the user has auth mode LDAP After these checks the user is deassigned from the LDAP group.
@access public
Definition at line 177 of file class.ilLDAPRoleGroupMapping.php.
References deassignFromGroup(), isHandledRole(), and isHandledUser().
Referenced by deleteRole(), and deleteUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Deassign user from group.
@access private
| int | role_id |
| int | user_id |
Definition at line 319 of file class.ilLDAPRoleGroupMapping.php.
References $data, $key, checkOtherMembership(), getLDAPQueryInstance(), and readDN().
Referenced by deassign().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleGroupMapping::deleteRole | ( | $a_role_id | ) |
Delete role.
This function triggered from ilRbacAdmin::deleteRole It deassigns all user from the mapped ldap group.
@access public
| int | role id |
Definition at line 146 of file class.ilLDAPRoleGroupMapping.php.
References $DIC, deassign(), and isHandledRole().
Here is the call graph for this function:| ilLDAPRoleGroupMapping::deleteUser | ( | $a_usr_id | ) |
Delete user => deassign from all ldap groups.
@access public
| int | user id |
Definition at line 201 of file class.ilLDAPRoleGroupMapping.php.
References $data, and deassign().
Here is the call graph for this function:| ilLDAPRoleGroupMapping::getInfoStrings | ( | $a_obj_id, | |
$a_check_type = false |
|||
| ) |
Get info string for object If check info type is enabled this function will check if the info string is visible in the repository.
@access public
| int | object id |
| bool | check info type |
Definition at line 90 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Get LDAPQueryInstance.
@access private
throws ilLDAPQueryException
Definition at line 477 of file class.ilLDAPRoleGroupMapping.php.
References IL_LDAP_BIND_ADMIN.
Referenced by assignToGroup(), deassignFromGroup(), and readDN().
Here is the caller graph for this function:
|
private |
Check if there is any active server with.
@access private
Definition at line 217 of file class.ilLDAPRoleGroupMapping.php.
References $data, $key, ilLDAPRoleGroupMappingSettings\_getAllActiveMappings(), ilObjUser\_getExternalAccountsByAuthMode(), ilLDAPServer\_getRoleSyncServerIds(), and ilLDAPRoleGroupMappingSettings\MAPPING_INFO_ALL.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Check if a role is handled or not.
@access private
| int | role_id |
Definition at line 262 of file class.ilLDAPRoleGroupMapping.php.
Referenced by assign(), deassign(), and deleteRole().
Here is the caller graph for this function:
|
private |
Check if user is ldap user.
@access private
Definition at line 272 of file class.ilLDAPRoleGroupMapping.php.
References $users.
Referenced by assign(), and deassign().
Here is the caller graph for this function:
|
private |
Read DN of user.
@access private
| int | user id |
| int | server id |
| ilLDAPQueryException |
Definition at line 421 of file class.ilLDAPRoleGroupMapping.php.
References $data, $res, $server, and getLDAPQueryInstance().
Referenced by assignToGroup(), and deassignFromGroup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Store Members.
@access private
Definition at line 394 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 45 of file class.ilLDAPRoleGroupMapping.php.
|
staticprivate |
Definition at line 40 of file class.ilLDAPRoleGroupMapping.php.
Referenced by _getInstance().
|
private |
Definition at line 39 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 43 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 42 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 44 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 41 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 50 of file class.ilLDAPRoleGroupMapping.php.
Referenced by isHandledUser().