ILIAS
Release_4_0_x_branch Revision 61816
|
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. | |
setUserData ($a_data) | |
Set user data received from pear auth or by ldap_search. | |
refresh () | |
Create/Update non existing users. |
Private Member Functions | |
usersToXML () | |
Create xml string of user according to mapping rules. | |
convertInput ($a_value) | |
A value can be an array or a string This function converts arrays to strings. | |
doMapping ($user, $rule) | |
doMapping | |
initLDAPAttributeMapping () | |
initUserDefinedFields () |
Private Attributes | |
$server_settings = null | |
$role_assignment = null | |
$db = null | |
$user_data = array() | |
$setting = null | |
$mapping = null |
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping settings.
Definition at line 35 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 51 of file class.ilLDAPAttributeToUser.php.
References $ilDB, $ilLog, $ilSetting, $lng, and initLDAPAttributeMapping().
|
private |
A value can be an array or a string This function converts arrays to strings.
private
array | or string value |
Definition at line 324 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
doMapping
private
Definition at line 342 of file class.ilLDAPAttributeToUser.php.
References $mapping, $user, and convertInput().
Referenced by usersToXML().
|
private |
Definition at line 367 of file class.ilLDAPAttributeToUser.php.
References ilLDAPAttributeMapping\_getInstanceByServerId().
Referenced by __construct().
|
private |
Definition at line 373 of file class.ilLDAPAttributeToUser.php.
References ilUserDefinedFields\_getInstance().
Referenced by usersToXML().
ilLDAPAttributeToUser::refresh | ( | ) |
Create/Update non existing users.
public
Definition at line 88 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAllPossibleRoles(), and usersToXML().
ilLDAPAttributeToUser::setUserData | ( | $a_data | ) |
Set user data received from pear auth or by ldap_search.
public @ param array array of auth data. array('ilias_account1' => array(firstname => 'Stefan',...),...)
Definition at line 76 of file class.ilLDAPAttributeToUser.php.
|
private |
Create xml string of user according to mapping rules.
private
Definition at line 114 of file class.ilLDAPAttributeToUser.php.
References $data, $user, $usr_id, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), doMapping(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), and initUserDefinedFields().
Referenced by refresh().
|
private |
Definition at line 39 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 43 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
Definition at line 38 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 37 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 42 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 41 of file class.ilLDAPAttributeToUser.php.