|
ILIAS
release_8 Revision v8.24
|
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping settings. More...
Collaboration diagram for ilLDAPAttributeToUser:Public Member Functions | |
| __construct (ilLDAPServer $a_server) | |
| Construct of ilLDAPAttribute2XML Defines between LDAP and ILIAS user attributes. More... | |
| getServer () | |
| Get server settings. More... | |
| setUserData (array $a_data) | |
| Set user data received from pear auth or by ldap_search. More... | |
| setNewUserAuthMode (string $a_authmode) | |
| Set auth mode for new users. More... | |
| getNewUserAuthMode () | |
| Get auth mode for new users. More... | |
| addMode (int $a_mode) | |
| Add import mode. More... | |
| isModeActive (int $a_mode) | |
| Check if mode is active. More... | |
| refresh () | |
| Create/Update non existing users. More... | |
Data Fields | |
| const | MODE_INITIALIZE_ROLES = 1 |
Protected Member Functions | |
| parseRoleAssignmentsForUpdate (int $a_usr_id, string $a_external_account, array $user) | |
| Parse role assignments for update of user account. More... | |
| parseRoleAssignmentsForCreation (string $a_external_account, array $a_user) | |
| Parse role assignments for update of user account. More... | |
Private Member Functions | |
| usersToXML () | |
| Create xml string of user according to mapping rules. More... | |
| convertInput ($a_value) | |
| A value can be an array or a string This function converts arrays to strings. More... | |
| doMapping (array $user, array $rule) | |
| initLDAPAttributeMapping () | |
| initUserDefinedFields () | |
Private Attributes | |
| array | $modes = [] |
| ilLDAPServer | $server_settings |
| array | $user_data = [] |
| ilLDAPAttributeMapping | $mapping |
| string | $new_user_auth_mode = 'ldap' |
| ilLogger | $logger |
| ilXmlWriter | $writer |
| ilUserDefinedFields | $udf |
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping settings.
Definition at line 27 of file class.ilLDAPAttributeToUser.php.
| ilLDAPAttributeToUser::__construct | ( | ilLDAPServer | $a_server | ) |
Construct of ilLDAPAttribute2XML Defines between LDAP and ILIAS user attributes.
Definition at line 44 of file class.ilLDAPAttributeToUser.php.
References $DIC, initLDAPAttributeMapping(), and ILIAS\Repository\logger().
Here is the call graph for this function:| ilLDAPAttributeToUser::addMode | ( | int | $a_mode | ) |
Add import mode.
Definition at line 95 of file class.ilLDAPAttributeToUser.php.
|
private |
A value can be an array or a string This function converts arrays to strings.
| array|string | value |
Definition at line 386 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
Here is the caller graph for this function:
|
private |
Definition at line 395 of file class.ilLDAPAttributeToUser.php.
References $mapping, and convertInput().
Referenced by usersToXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPAttributeToUser::getNewUserAuthMode | ( | ) |
Get auth mode for new users.
Definition at line 87 of file class.ilLDAPAttributeToUser.php.
References $new_user_auth_mode.
Referenced by usersToXML().
Here is the caller graph for this function:| ilLDAPAttributeToUser::getServer | ( | ) |
Get server settings.
Definition at line 59 of file class.ilLDAPAttributeToUser.php.
References $server_settings.
Referenced by parseRoleAssignmentsForCreation(), parseRoleAssignmentsForUpdate(), and refresh().
Here is the caller graph for this function:
|
private |
Definition at line 415 of file class.ilLDAPAttributeToUser.php.
References ilLDAPAttributeMapping\_getInstanceByServerId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 420 of file class.ilLDAPAttributeToUser.php.
References ilUserDefinedFields\_getInstance().
Referenced by usersToXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPAttributeToUser::isModeActive | ( | int | $a_mode | ) |
Check if mode is active.
| int | $a_mode |
Definition at line 108 of file class.ilLDAPAttributeToUser.php.
Referenced by usersToXML().
Here is the caller graph for this function:
|
protected |
Parse role assignments for update of user account.
| string | $a_external_account | |
| array | $a_user |
Definition at line 161 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), and getServer().
Referenced by usersToXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Parse role assignments for update of user account.
| int | $a_usr_id | |
| string | $a_external_account | |
| array | $user |
Definition at line 136 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), and getServer().
Referenced by usersToXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPAttributeToUser::refresh | ( | ) |
Create/Update non existing users.
Definition at line 117 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAllPossibleRoles(), getServer(), and usersToXML().
Here is the call graph for this function:| ilLDAPAttributeToUser::setNewUserAuthMode | ( | string | $a_authmode | ) |
Set auth mode for new users.
| string | $a_authmode |
Definition at line 79 of file class.ilLDAPAttributeToUser.php.
| ilLDAPAttributeToUser::setUserData | ( | array | $a_data | ) |
Set user data received from pear auth or by ldap_search.
| array | array of auth data. array('ilias_account1' => array(firstname => 'Stefan',...),...) |
Definition at line 70 of file class.ilLDAPAttributeToUser.php.
|
private |
Create xml string of user according to mapping rules.
Definition at line 183 of file class.ilLDAPAttributeToUser.php.
References $data, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), doMapping(), getNewUserAuthMode(), initUserDefinedFields(), isModeActive(), ILIAS\Repository\logger(), parseRoleAssignmentsForCreation(), and parseRoleAssignmentsForUpdate().
Referenced by refresh().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 36 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 34 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
Definition at line 31 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 35 of file class.ilLDAPAttributeToUser.php.
Referenced by getNewUserAuthMode().
|
private |
Definition at line 32 of file class.ilLDAPAttributeToUser.php.
Referenced by getServer().
|
private |
Definition at line 38 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 33 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 37 of file class.ilLDAPAttributeToUser.php.
| const ilLDAPAttributeToUser::MODE_INITIALIZE_ROLES = 1 |
Definition at line 29 of file class.ilLDAPAttributeToUser.php.
Referenced by ilLDAPUserSynchronisation\performUpdate().