| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Synchronization of user accounts used in auth container ldap, radius , cas,... More...
 Collaboration diagram for ilLDAPUserSynchronisation:
 Collaboration diagram for ilLDAPUserSynchronisation:| Public Member Functions | |
| __construct ($a_authmode, $a_server_id) | |
| Constructor. | |
| getServer () | |
| Get current ldap server. | |
| getAuthMode () | |
| Get Auth Mode. | |
| setExternalAccount ($a_ext) | |
| Set external account (unique for each auth mode) | |
| getExternalAccount () | |
| Get external accocunt. | |
| getInternalAccount () | |
| Get ILIAS unique internal account name. | |
| forceCreation ($a_force) | |
| Force cration of user accounts (Account migration enabled) | |
| isCreationForced () | |
| Check if creation of user account is forced (account migration) | |
| getUserData () | |
| Get user data. | |
| setUserData ($a_data) | |
| Set user data. | |
| sync () | |
| Synchronize user account. | |
| Protected Member Functions | |
| handleCreation () | |
| Handle creation of user accounts. | |
| handleAccountMigration () | |
| Handle account migration. | |
| performUpdate () | |
| Update user account and role assignments. | |
| readUserData () | |
| Read user data. | |
| readInternalAccount () | |
| Read internal account of user. | |
| isUpdateRequired () | |
| Check if an update is required. | |
| initServer ($a_auth_mode, $a_server_id) | |
| Init LDAP server. | |
| Private Attributes | |
| $authmode = 0 | |
| $server = null | |
| $extaccount = '' | |
| $intaccount = '' | |
| $user_data = array() | |
| $force_creation = false | |
Synchronization of user accounts used in auth container ldap, radius , cas,...
Definition at line 14 of file class.ilLDAPUserSynchronisation.php.
| ilLDAPUserSynchronisation::__construct | ( | $a_authmode, | |
| $a_server_id | |||
| ) | 
Constructor.
| string | $a_auth_mode | 
Definition at line 33 of file class.ilLDAPUserSynchronisation.php.
References initServer().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLDAPUserSynchronisation::forceCreation | ( | $a_force | ) | 
Force cration of user accounts (Account migration enabled)
| bool | $a_force | 
Definition at line 87 of file class.ilLDAPUserSynchronisation.php.
| ilLDAPUserSynchronisation::getAuthMode | ( | ) | 
Get Auth Mode.
Definition at line 51 of file class.ilLDAPUserSynchronisation.php.
References $authmode.
Referenced by handleAccountMigration(), performUpdate(), readInternalAccount(), and readUserData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPUserSynchronisation::getExternalAccount | ( | ) | 
Get external accocunt.
Definition at line 69 of file class.ilLDAPUserSynchronisation.php.
References $extaccount.
Referenced by handleAccountMigration(), performUpdate(), readInternalAccount(), and readUserData().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPUserSynchronisation::getInternalAccount | ( | ) | 
Get ILIAS unique internal account name.
Definition at line 78 of file class.ilLDAPUserSynchronisation.php.
References $intaccount.
Referenced by isUpdateRequired(), readUserData(), and sync().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPUserSynchronisation::getServer | ( | ) | 
Get current ldap server.
Definition at line 42 of file class.ilLDAPUserSynchronisation.php.
References $server.
Referenced by handleCreation(), isUpdateRequired(), performUpdate(), readUserData(), and sync().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPUserSynchronisation::getUserData | ( | ) | 
Get user data.
Definition at line 105 of file class.ilLDAPUserSynchronisation.php.
References $user_data.
Referenced by handleAccountMigration(), and performUpdate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Handle account migration.
Definition at line 175 of file class.ilLDAPUserSynchronisation.php.
References $_POST, $_SESSION, ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), getAuthMode(), getExternalAccount(), getUserData(), and ilLDAPRoleAssignmentRules\ROLE_ACTION_ASSIGN.
Referenced by handleCreation().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Handle creation of user accounts.
Definition at line 155 of file class.ilLDAPUserSynchronisation.php.
References getServer(), handleAccountMigration(), isCreationForced(), and readUserData().
Referenced by sync().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Init LDAP server.
| int | $a_server_id | 
Definition at line 293 of file class.ilLDAPUserSynchronisation.php.
References ilLDAPServer\getInstanceByServerId().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPUserSynchronisation::isCreationForced | ( | ) | 
Check if creation of user account is forced (account migration)
Definition at line 96 of file class.ilLDAPUserSynchronisation.php.
References $force_creation.
Referenced by handleCreation().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Check if an update is required.
Definition at line 265 of file class.ilLDAPUserSynchronisation.php.
References getInternalAccount(), getServer(), ilLDAPRoleAssignmentRule\hasRulesForUpdate(), and ilLDAPAttributeMapping\hasRulesForUpdate().
Referenced by sync().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Update user account and role assignments.
Definition at line 204 of file class.ilLDAPUserSynchronisation.php.
References getAuthMode(), getExternalAccount(), getServer(), getUserData(), and readInternalAccount().
Referenced by sync().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Read internal account of user.
| UnexpectedValueException | 
Definition at line 249 of file class.ilLDAPUserSynchronisation.php.
References ilObjUser\_checkExternalAuthAccount(), getAuthMode(), and getExternalAccount().
Referenced by performUpdate(), and sync().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Read user data.
In case of auth mode != 'ldap' start a query with external account name against ldap server
Definition at line 228 of file class.ilLDAPUserSynchronisation.php.
References $query, getAuthMode(), getExternalAccount(), getInternalAccount(), and getServer().
Referenced by handleCreation(), and sync().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPUserSynchronisation::setExternalAccount | ( | $a_ext | ) | 
Set external account (unique for each auth mode)
| string | $a_ext | 
Definition at line 60 of file class.ilLDAPUserSynchronisation.php.
Referenced by ilAuthContainerCAS\handleLDAPDataSource(), ilAuthContainerRadius\handleLDAPDataSource(), and ilAuthContainerLDAP\loginObserver().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPUserSynchronisation::setUserData | ( | $a_data | ) | 
Set user data.
| array | $a_data | 
Definition at line 114 of file class.ilLDAPUserSynchronisation.php.
| ilLDAPUserSynchronisation::sync | ( | ) | 
Synchronize user account.
| UnexpectedValueException | missing or wrong external account given | 
| ilLDAPSynchronisationForbiddenException | if user synchronisation is disabled | 
Definition at line 125 of file class.ilLDAPUserSynchronisation.php.
References getInternalAccount(), getServer(), handleCreation(), isUpdateRequired(), performUpdate(), readInternalAccount(), and readUserData().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 16 of file class.ilLDAPUserSynchronisation.php.
Referenced by getAuthMode().
| 
 | private | 
Definition at line 20 of file class.ilLDAPUserSynchronisation.php.
Referenced by getExternalAccount().
| 
 | private | 
Definition at line 25 of file class.ilLDAPUserSynchronisation.php.
Referenced by isCreationForced().
| 
 | private | 
Definition at line 21 of file class.ilLDAPUserSynchronisation.php.
Referenced by getInternalAccount().
| 
 | private | 
Definition at line 18 of file class.ilLDAPUserSynchronisation.php.
Referenced by getServer().
| 
 | private | 
Definition at line 23 of file class.ilLDAPUserSynchronisation.php.
Referenced by getUserData().