ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
getPossibleRoles () | |
Get possible roles this array is used for ilUserImportParser::setRoleAssignment. | |
assignedRoles ($a_external_name, $a_user_att) | |
get assigned roles for a specific user |
Static Public Member Functions | |
static | _getInstanceByServer (ilLDAPServer $a_server) |
get instance by server_id | |
static | _getDistinctAttributeNamesByServerId ($a_server_id) |
Get distinct attribute names. |
Protected Attributes | |
$db |
Private Member Functions | |
__construct ($a_server) | |
Singleton. | |
isGroupMember ($a_dn, $a_ldap_account, $a_user_data) | |
Check if user is member. | |
fetchAttributeMappings () | |
fetch attribute mappings | |
fetchGroupMappings () | |
Fetch group mappings. | |
fetchDefaultRole () | |
fetch default role |
Private Attributes | |
$server = null | |
$server_id | |
$default_role | |
$all_roles = array() | |
$att_mappings = array() | |
$grp_mappings = array() |
Static Private Attributes | |
static | $instances = array() |
Definition at line 34 of file class.ilLDAPRoleAssignments.php.
|
private |
Singleton.
private
object | ilLDAPServer |
Definition at line 54 of file class.ilLDAPRoleAssignments.php.
References fetchAttributeMappings(), fetchDefaultRole(), and fetchGroupMappings().
|
static |
Get distinct attribute names.
int | LDAP server id public |
Definition at line 94 of file class.ilLDAPRoleAssignments.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPQuery\fetchUserProfileFields(), and ilLDAPServer\getPearAtributeArray().
|
static |
get instance by server_id
public
object | ldap server |
Definition at line 75 of file class.ilLDAPRoleAssignments.php.
References ilLDAPServer\getServerId().
Referenced by ilLDAPAttributeToUser\initLDAPRoleAssignments(), ilAuthLDAP\loginObserver(), and ilAuthContainerLDAP\loginObserver().
ilLDAPRoleAssignments::assignedRoles | ( | $a_external_name, | |
$a_user_att | |||
) |
get assigned roles for a specific user
public
string | external username |
array | aray of ldap user attributes |
Definition at line 130 of file class.ilLDAPRoleAssignments.php.
References $ilLog, ilObject\_lookupTitle(), and isGroupMember().
|
private |
fetch attribute mappings
private
Definition at line 241 of file class.ilLDAPRoleAssignments.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
|
private |
fetch default role
private
Definition at line 284 of file class.ilLDAPRoleAssignments.php.
References $default_role, and ilLDAPAttributeMapping\_lookupGlobalRole().
Referenced by __construct().
|
private |
Fetch group mappings.
private
Definition at line 260 of file class.ilLDAPRoleAssignments.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilLDAPRoleAssignments::getPossibleRoles | ( | ) |
Get possible roles this array is used for ilUserImportParser::setRoleAssignment.
public
array | array role_id => role_id |
Definition at line 117 of file class.ilLDAPRoleAssignments.php.
|
private |
Check if user is member.
private
string | group dn |
string | ldap account |
array | user_data |
Definition at line 198 of file class.ilLDAPRoleAssignments.php.
References $ilLog, $res, and IL_LDAP_SCOPE_BASE.
Referenced by assignedRoles().
|
private |
Definition at line 41 of file class.ilLDAPRoleAssignments.php.
|
private |
Definition at line 42 of file class.ilLDAPRoleAssignments.php.
|
protected |
Definition at line 45 of file class.ilLDAPRoleAssignments.php.
|
private |
Definition at line 40 of file class.ilLDAPRoleAssignments.php.
Referenced by fetchDefaultRole().
|
private |
Definition at line 43 of file class.ilLDAPRoleAssignments.php.
|
staticprivate |
Definition at line 36 of file class.ilLDAPRoleAssignments.php.
|
private |
Definition at line 38 of file class.ilLDAPRoleAssignments.php.
|
private |
Definition at line 39 of file class.ilLDAPRoleAssignments.php.