ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping settings. More...
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 |
Profile | $profile |
array | $user_data = [] |
ilLDAPAttributeMapping | $mapping |
string | $new_user_auth_mode = 'ldap' |
ilLogger | $logger |
ilXmlWriter | $writer |
array | $user_defined_fields = null |
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping settings.
Definition at line 29 of file class.ilLDAPAttributeToUser.php.
ilLDAPAttributeToUser::__construct | ( | ilLDAPServer | $a_server | ) |
Construct of ilLDAPAttribute2XML Defines between LDAP and ILIAS user attributes.
Definition at line 50 of file class.ilLDAPAttributeToUser.php.
References $DIC, initLDAPAttributeMapping(), ILIAS\Repository\logger(), and ILIAS\Repository\profile().
ilLDAPAttributeToUser::addMode | ( | int | $a_mode | ) |
Add import mode.
Definition at line 102 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 389 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
Definition at line 398 of file class.ilLDAPAttributeToUser.php.
References $mapping, and convertInput().
Referenced by usersToXML().
ilLDAPAttributeToUser::getNewUserAuthMode | ( | ) |
Get auth mode for new users.
Definition at line 94 of file class.ilLDAPAttributeToUser.php.
References $new_user_auth_mode.
Referenced by usersToXML().
ilLDAPAttributeToUser::getServer | ( | ) |
Get server settings.
Definition at line 66 of file class.ilLDAPAttributeToUser.php.
References $server_settings.
Referenced by parseRoleAssignmentsForCreation(), parseRoleAssignmentsForUpdate(), and refresh().
|
private |
Definition at line 418 of file class.ilLDAPAttributeToUser.php.
References ilLDAPAttributeMapping\_getInstanceByServerId().
Referenced by __construct().
|
private |
Definition at line 423 of file class.ilLDAPAttributeToUser.php.
References ILIAS\Repository\profile().
Referenced by usersToXML().
ilLDAPAttributeToUser::isModeActive | ( | int | $a_mode | ) |
Check if mode is active.
int | $a_mode |
Definition at line 115 of file class.ilLDAPAttributeToUser.php.
Referenced by usersToXML().
|
protected |
Parse role assignments for update of user account.
string | $a_external_account | |
array | $a_user |
Definition at line 168 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), and getServer().
Referenced by usersToXML().
|
protected |
Parse role assignments for update of user account.
int | $a_usr_id | |
string | $a_external_account | |
array | $user |
Definition at line 143 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), and getServer().
Referenced by usersToXML().
ilLDAPAttributeToUser::refresh | ( | ) |
Create/Update non existing users.
Definition at line 124 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAllPossibleRoles(), getServer(), and usersToXML().
ilLDAPAttributeToUser::setNewUserAuthMode | ( | string | $a_authmode | ) |
Set auth mode for new users.
string | $a_authmode |
Definition at line 86 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 77 of file class.ilLDAPAttributeToUser.php.
|
private |
Create xml string of user according to mapping rules.
Definition at line 190 of file class.ilLDAPAttributeToUser.php.
References $data, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), doMapping(), ILIAS\Test\Questions\Presentation\getLabel, getNewUserAuthMode(), initUserDefinedFields(), isModeActive(), ILIAS\Repository\logger(), parseRoleAssignmentsForCreation(), and parseRoleAssignmentsForUpdate().
Referenced by refresh().
|
private |
Definition at line 39 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 37 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
Definition at line 33 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 38 of file class.ilLDAPAttributeToUser.php.
Referenced by getNewUserAuthMode().
|
private |
Definition at line 35 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 34 of file class.ilLDAPAttributeToUser.php.
Referenced by getServer().
|
private |
Definition at line 36 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 44 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 40 of file class.ilLDAPAttributeToUser.php.
const ilLDAPAttributeToUser::MODE_INITIALIZE_ROLES = 1 |
Definition at line 31 of file class.ilLDAPAttributeToUser.php.
Referenced by ilLDAPUserSynchronisation\performUpdate().