ILIAS
Release_4_0_x_branch Revision 61816
|
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. | |
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. | |
deleteRole ($a_role_id) | |
Delete role. | |
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. | |
deleteUser ($a_usr_id) | |
Delete user => deassign from all ldap groups. |
Static Public Member Functions | |
static | _getInstance () |
Get singleton instance of this class. |
Private Member Functions | |
__construct () | |
Singleton contructor. | |
initServers () | |
Check if there is any active server with. | |
isHandledRole ($a_role_id) | |
Check if a role is handled or not. | |
isHandledUser ($a_usr_id) | |
Check if user is ldap user. | |
assignToGroup ($a_role_id, $a_usr_id) | |
Assign user to group. | |
deassignFromGroup ($a_role_id, $a_usr_id) | |
Deassign user from group. | |
isMember ($a_uid, $data) | |
Check if user is member. | |
checkOtherMembership ($a_usr_id, $a_role_id, $a_data) | |
Check other membership. | |
storeMembers ($a_mapping_id, $a_data) | |
Store Members. | |
readDN ($a_usr_id, $a_server_id) | |
Read DN of user. | |
getLDAPQueryInstance ($a_server_id, $a_url) | |
Get LDAPQueryInstance. |
Private Attributes | |
$log = null | |
$servers = null | |
$mappings = array() | |
$mapping_members = array() | |
$query = array() | |
$active_servers = false |
Static Private Attributes | |
static | $instance = null |
Definition at line 34 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Singleton contructor.
private
Definition at line 50 of file class.ilLDAPRoleGroupMapping.php.
References $ilLog, and initServers().
|
static |
Get singleton instance of this class.
public
Definition at line 64 of file class.ilLDAPRoleGroupMapping.php.
References $instance.
Referenced by ilRbacAdmin\assignUser(), ilRbacAdmin\deassignUser(), ilObjUser\delete(), ilRbacAdmin\deleteRole(), ilObjectListGUI\ilObjectListGUI(), and ilInfoScreenGUI\showLDAPRoleGroupMappingInfo().
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.
public
Definition at line 116 of file class.ilLDAPRoleGroupMapping.php.
References assignToGroup(), isHandledRole(), and isHandledUser().
|
private |
Assign user to group.
private
int | role_id |
int | user_id |
Definition at line 295 of file class.ilLDAPRoleGroupMapping.php.
References $data, getLDAPQueryInstance(), and readDN().
Referenced by assign().
|
private |
Check other membership.
private
Definition at line 440 of file class.ilLDAPRoleGroupMapping.php.
References $data.
Referenced by deassignFromGroup().
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.
public
Definition at line 180 of file class.ilLDAPRoleGroupMapping.php.
References deassignFromGroup(), isHandledRole(), and isHandledUser().
Referenced by deleteRole(), and deleteUser().
|
private |
Deassign user from group.
private
int | role_id |
int | user_id |
Definition at line 340 of file class.ilLDAPRoleGroupMapping.php.
References $data, $key, checkOtherMembership(), getLDAPQueryInstance(), and readDN().
Referenced by deassign().
ilLDAPRoleGroupMapping::deleteRole | ( | $a_role_id | ) |
Delete role.
This function triggered from ilRbacAdmin::deleteRole It deassigns all user from the mapped ldap group.
public
int | role id |
Definition at line 148 of file class.ilLDAPRoleGroupMapping.php.
References $usr_id, deassign(), and isHandledRole().
ilLDAPRoleGroupMapping::deleteUser | ( | $a_usr_id | ) |
Delete user => deassign from all ldap groups.
public
int | user id |
Definition at line 207 of file class.ilLDAPRoleGroupMapping.php.
References $data, and deassign().
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.
public
int | object id |
bool | check info type |
Definition at line 82 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Get LDAPQueryInstance.
private
@throws | ilLDAPQueryException |
Definition at line 561 of file class.ilLDAPRoleGroupMapping.php.
References IL_LDAP_BIND_ADMIN.
Referenced by assignToGroup(), deassignFromGroup(), isMember(), and readDN().
|
private |
Check if there is any active server with.
private
Definition at line 224 of file class.ilLDAPRoleGroupMapping.php.
References $data, $key, ilLDAPRoleGroupMappingSettings\_getAllActiveMappings(), ilObjUser\_getExternalAccountsByAuthMode(), ilLDAPServer\_getRoleSyncServerIds(), and ilLDAPRoleGroupMappingSettings\MAPPING_INFO_ALL.
Referenced by __construct().
|
private |
Check if a role is handled or not.
private
int | role_id |
Definition at line 272 of file class.ilLDAPRoleGroupMapping.php.
Referenced by assign(), deassign(), and deleteRole().
|
private |
Check if user is ldap user.
private
Definition at line 282 of file class.ilLDAPRoleGroupMapping.php.
Referenced by assign(), and deassign().
|
private |
Check if user is member.
private
ilLDAPQueryException |
Definition at line 399 of file class.ilLDAPRoleGroupMapping.php.
References $data, $res, $server, getLDAPQueryInstance(), IL_LDAP_SCOPE_BASE, and storeMembers().
|
private |
Read DN of user.
private
int | user id |
int | server id |
ilLDAPQueryException |
Definition at line 507 of file class.ilLDAPRoleGroupMapping.php.
References $data, $filter, $res, $server, and getLDAPQueryInstance().
Referenced by assignToGroup(), and deassignFromGroup().
|
private |
Store Members.
private
Definition at line 476 of file class.ilLDAPRoleGroupMapping.php.
Referenced by isMember().
|
private |
Definition at line 42 of file class.ilLDAPRoleGroupMapping.php.
|
staticprivate |
Definition at line 37 of file class.ilLDAPRoleGroupMapping.php.
Referenced by _getInstance().
|
private |
Definition at line 36 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 40 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 39 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 41 of file class.ilLDAPRoleGroupMapping.php.
|
private |
Definition at line 38 of file class.ilLDAPRoleGroupMapping.php.