|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
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... | |
| 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... | |
| refresh () | |
| Create/Update non existing users. 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 | |
| $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 52 of file class.ilLDAPAttributeToUser.php.
References $ilDB, $ilLog, $ilSetting, $lng, and initLDAPAttributeMapping().
Here is the call graph for this function:
|
private |
A value can be an array or a string This function converts arrays to strings.
@access private
| array | or string value |
Definition at line 347 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
Here is the caller graph for this function:
|
private |
doMapping
@access private
Definition at line 365 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 96 of file class.ilLDAPAttributeToUser.php.
References $new_user_auth_mode.
Referenced by usersToXML().
Here is the caller graph for this function:
|
private |
Definition at line 390 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 396 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::refresh | ( | ) |
Create/Update non existing users.
@access public
Definition at line 108 of file class.ilLDAPAttributeToUser.php.
References ilLDAPRoleAssignmentRules\getAllPossibleRoles(), and usersToXML().
Here is the call graph for this function:| 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 88 of file class.ilLDAPAttributeToUser.php.
| ilLDAPAttributeToUser::setUserData | ( | $a_data | ) |
Set user data received from pear auth or by ldap_search.
@access public
| array | array of auth data. array('ilias_account1' => array(firstname => 'Stefan',...),...) |
Definition at line 78 of file class.ilLDAPAttributeToUser.php.
|
private |
Create xml string of user according to mapping rules.
@access private
Definition at line 135 of file class.ilLDAPAttributeToUser.php.
References $data, ilAuthUtils\_generateLogin(), ilObjUser\_lookupId(), doMapping(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), getNewUserAuthMode(), and initUserDefinedFields().
Referenced by refresh().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 38 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 42 of file class.ilLDAPAttributeToUser.php.
Referenced by doMapping().
|
private |
Definition at line 44 of file class.ilLDAPAttributeToUser.php.
Referenced by getNewUserAuthMode().
|
private |
Definition at line 37 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 36 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 41 of file class.ilLDAPAttributeToUser.php.
|
private |
Definition at line 40 of file class.ilLDAPAttributeToUser.php.