ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 ($a_data) | |
Set user data received from pear auth or by ldap_search. More... | |
setNewUserAuthMode ($a_authmode) | |
Set auth mode for new users. More... | |
getNewUserAuthMode () | |
Get auth mode for new users. More... | |
addMode ($a_mode) | |
Add import mode. More... | |
isModeActive ($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 ($a_usr_id, $a_external_account, $user) | |
Parse role assignments for update of user account. More... | |
parseRoleAssignmentsForCreation ($a_external_account, $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 ($user, $rule) | |
doMapping More... | |
initLDAPAttributeMapping () | |
initUserDefinedFields () | |
Private Attributes | |
$modes = [] | |
$server_settings = null | |
$role_assignment = null | |
$db = null | |
$user_data = array() | |
$setting = null | |
$mapping = null | |
$new_user_auth_mode = 'ldap' | |
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping settings.
Definition at line 34 of file class.ilLDAPAttributeToUser.php.
ilLDAPAttributeToUser::__construct | ( | ilLDAPServer | $a_server | ) |
Construct of ilLDAPAttribute2XML Defines between LDAP and ILIAS user attributes.
object | il |
Definition at line 57 of file class.ilLDAPAttributeToUser.php.
References $ilDB, $ilLog, $ilSetting, $lng, and initLDAPAttributeMapping().
ilLDAPAttributeToUser::addMode | ( | $a_mode | ) |
|
private |
A value can be an array or a string This function converts arrays to strings.
private
array | or string value |
Definition at line 417 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
doMapping
private
Definition at line 432 of file class.ilLDAPAttributeToUser.php.
References $mapping, $rule, and convertInput().
Referenced by usersToXML().
ilLDAPAttributeToUser::getNewUserAuthMode | ( | ) |
Get auth mode for new users.
Definition at line 111 of file class.ilLDAPAttributeToUser.php.
References $new_user_auth_mode.
Referenced by usersToXML().
ilLDAPAttributeToUser::getServer | ( | ) |
Get server settings.
Definition at line 80 of file class.ilLDAPAttributeToUser.php.
References $server_settings.
Referenced by parseRoleAssignmentsForCreation(), parseRoleAssignmentsForUpdate(), and refresh().
|
private |
Definition at line 454 of file class.ilLDAPAttributeToUser.php.
References ilLDAPAttributeMapping\_getInstanceByServerId().
Referenced by __construct().
|
private |
Definition at line 460 of file class.ilLDAPAttributeToUser.php.
References ilUserDefinedFields\_getInstance().
Referenced by usersToXML().
ilLDAPAttributeToUser::isModeActive | ( | $a_mode | ) |
Check if mode is active.
int | $a_mode |
Definition at line 132 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 197 of file class.ilLDAPAttributeToUser.php.
References array, 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 171 of file class.ilLDAPAttributeToUser.php.
References array, ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), and getServer().
Referenced by usersToXML().
ilLDAPAttributeToUser::refresh | ( | ) |
Create/Update non existing users.
public
Definition at line 144 of file class.ilLDAPAttributeToUser.php.
References $debug, ilLDAPRoleAssignmentRules\getAllPossibleRoles(), getServer(), and usersToXML().
ilLDAPAttributeToUser::setNewUserAuthMode | ( | $a_authmode | ) |
Set auth mode for new users.
E.g. radius for radius authenticated user with ldap data source
string | $a_authmode |
Definition at line 103 of file class.ilLDAPAttributeToUser.php.
ilLDAPAttributeToUser::setUserData | ( | $a_data | ) |
Set user data received from pear auth or by ldap_search.
public
array | array of auth data. array('ilias_account1' => array(firstname => 'Stefan',...),...) |
Definition at line 93 of file class.ilLDAPAttributeToUser.php.
|
private |
Create xml string of user according to mapping rules.
private
Definition at line 221 of file class.ilLDAPAttributeToUser.php.
References $data, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), array, doMapping(), getNewUserAuthMode(), initUserDefinedFields(), isModeActive(), parseRoleAssignmentsForCreation(), parseRoleAssignmentsForUpdate(), and time.
Referenced by refresh().
|
private |
Definition at line 43 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 47 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
Definition at line 38 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 49 of file class.ilLDAPAttributeToUser.php.
Referenced by getNewUserAuthMode().
|
private |
Definition at line 42 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 41 of file class.ilLDAPAttributeToUser.php.
Referenced by getServer().
|
private |
Definition at line 46 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 45 of file class.ilLDAPAttributeToUser.php.
const ilLDAPAttributeToUser::MODE_INITIALIZE_ROLES = 1 |
Definition at line 36 of file class.ilLDAPAttributeToUser.php.
Referenced by ilLDAPUserSynchronisation\performUpdate().