Authentication against ILIAS database.
More...
Authentication against ILIAS database.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 12 of file class.ilAuthContainerApache.php.
◆ __construct()
ilAuthContainerApache::__construct |
( |
| ) |
|
◆ forceCreation()
static ilAuthContainerApache::forceCreation |
( |
|
$value | ) |
|
|
static |
◆ handleLDAPDataSource()
ilAuthContainerApache::handleLDAPDataSource |
( |
|
$a_auth, |
|
|
|
$ext_account, |
|
|
|
$settings |
|
) |
| |
|
protected |
Handle ldap as data source.
- Parameters
-
Auth | $auth | |
string | $ext_account | |
Definition at line 278 of file class.ilAuthContainerApache.php.
279 {
280 include_once './Services/LDAP/classes/class.ilLDAPServer.php';
282 $settings->get('apache_ldap_sid')
283 );
284
286
287 include_once './Services/LDAP/classes/class.ilLDAPUserSynchronisation.php';
289 $sync->setExternalAccount($ext_account);
290 $sync->setUserData(array());
291 $sync->forceCreation(self::$force_creation);
292 $sync->forceReadLdapData(
true);
293
294 try {
295 $internal_account =
$sync->sync();
296 } catch (UnexpectedValueException $e) {
298 $a_auth->status = AUTH_WRONG_LOGIN;
299 $a_auth->logout();
300 return false;
302
305 $a_auth->logout();
306 return false;
309 $a_auth->logout();
310 ilUtil::redirect(
'ilias.php?baseClass=ilStartUpGUI&cmdClass=ilstartupgui&cmd=showAccountMigration');
311 }
312
313 $a_auth->setAuth($internal_account);
314 return true;
315 }
const AUTH_RADIUS_NO_ILIAS_USER
Description of ilLDAPAccountMigrationRequiredException.
static getInstanceByServerId($a_server_id)
Get instance by server id.
Description of ilLDAPSyncronisationException.
Synchronization of user accounts used in auth container ldap, radius , cas,...
static getLogger($a_component_id)
Get component logger.
static redirect($a_script)
References $server, $sync, AUTH_RADIUS_NO_ILIAS_USER, ilLDAPServer\getInstanceByServerId(), ilLoggerFactory\getLogger(), and ilUtil\redirect().
◆ initLDAPAttributeToUser()
ilAuthContainerApache::initLDAPAttributeToUser |
( |
| ) |
|
|
private |
Init LDAP attribute mapping @access private.
Definition at line 266 of file class.ilAuthContainerApache.php.
267 {
268 include_once('Services/LDAP/classes/class.ilLDAPAttributeToUser.php');
270 }
Update/create ILIAS user account by given LDAP attributes according to user attribute mapping setting...
◆ updateRequired()
ilAuthContainerApache::updateRequired |
( |
|
$a_username | ) |
|
|
protected |
Check if an update is required.
- Returns
- Parameters
-
Definition at line 245 of file class.ilAuthContainerApache.php.
246 {
248 return true;
249 }
250
251 include_once './Services/LDAP/classes/class.ilLDAPAttributeMapping.php';
253 return true;
254 }
255 include_once './Services/LDAP/classes/class.ilLDAPRoleAssignmentRule.php';
257 return true;
258 }
259 return false;
260 }
static hasRulesForUpdate($a_server_id)
Check if there is ldap attribute -> user data mapping which which is updated on login.
static hasRulesForUpdate()
Check if there any rule for updates.
static _checkExternalAuthAccount($a_auth, $a_account, $tryFallback=true)
check whether external account and authentication method matches with a user
References ilObjUser\_checkExternalAuthAccount(), ilLDAPAttributeMapping\hasRulesForUpdate(), and ilLDAPRoleAssignmentRule\hasRulesForUpdate().
◆ $force_creation
ilAuthContainerApache::$force_creation = false |
|
static |
The documentation for this class was generated from the following file: