|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilLDAPRoleGroupMapping:Public Member Functions | |
| getInfoStrings (int $a_obj_id, bool $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 (int $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) | |
| 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 (int $a_usr_id, int $a_role_id, array $a_data) | |
| Check other membership. More... | |
| readDN (int $a_usr_id, int $a_server_id) | |
| Read DN of user. More... | |
| getLDAPQueryInstance ($a_server_id, $a_url) | |
| Get LDAPQueryInstance. More... | |
Private Attributes | |
| ilLogger | $log |
| ilRbacReview | $rbacreview |
| ilObjectDataCache | $ilObjDataCache |
| array | $servers |
| array | $mappings |
| array | $mapping_members |
| array | $mapping_info |
| array | $mapping_info_strict |
| array | $query |
| array | $users |
| array | $user_dns |
| bool | $active_servers = false |
Static Private Attributes | |
| static ilLDAPRoleGroupMapping | $instance = null |
Definition at line 24 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Singleton contructor.
Definition at line 44 of file class.ilLDAPRoleGroupMapping.php.
References $DIC, and initServers().
Here is the call graph for this function:
|
static |
Get singleton instance of this class.
Definition at line 58 of file class.ilLDAPRoleGroupMapping.php.
References $instance.
Referenced by ilRbacAdmin\assignUser(), 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.
Definition at line 97 of file class.ilLDAPRoleGroupMapping.php.
References assignToGroup(), isHandledRole(), and isHandledUser().
Here is the call graph for this function:
|
private |
Assign user to group.
| int | role_id |
| int | user_id |
Definition at line 245 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.
Definition at line 330 of file class.ilLDAPRoleGroupMapping.php.
References $data.
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.
Definition at line 148 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.
| int | role_id |
| int | user_id |
Definition at line 282 of file class.ilLDAPRoleGroupMapping.php.
References $data, ILIAS\LTI\ToolProvider\$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 | ( | int | $a_role_id | ) |
Delete role.
This function triggered from ilRbacAdmin::deleteRole It deassigns all user from the mapped ldap group.
| int | role id |
Definition at line 125 of file class.ilLDAPRoleGroupMapping.php.
References deassign(), and isHandledRole().
Here is the call graph for this function:| ilLDAPRoleGroupMapping::deleteUser | ( | $a_usr_id | ) |
Delete user => deassign from all ldap groups.
| int | user id |
Definition at line 171 of file class.ilLDAPRoleGroupMapping.php.
References deassign().
Here is the call graph for this function:| ilLDAPRoleGroupMapping::getInfoStrings | ( | int | $a_obj_id, |
| bool | $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.
| int | object id |
| bool | check info type |
Definition at line 74 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Get LDAPQueryInstance.
| ilLDAPQueryException |
Definition at line 410 of file class.ilLDAPRoleGroupMapping.php.
References ilLDAPQuery\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.
Definition at line 187 of file class.ilLDAPRoleGroupMapping.php.
References $data, 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 |
| int | string | null | $a_role_id |
Definition at line 221 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.
Definition at line 233 of file class.ilLDAPRoleGroupMapping.php.
Referenced by assign(), and deassign().
Here is the caller graph for this function:
|
private |
Read DN of user.
| int | user id |
| int | server id |
| ilLDAPQueryException |
Definition at line 358 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 |
Definition at line 39 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 29 of file class.ilLDAPRoleGroupMapping.php.
|
staticprivate |
Definition at line 26 of file class.ilLDAPRoleGroupMapping.php.
Referenced by _getInstance().
|
private |
Definition at line 27 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 34 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 35 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 33 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 32 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 36 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 28 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 31 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 38 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 37 of file class.ilLDAPRoleGroupMapping.php.