ILIAS
Release_4_0_x_branch Revision 61816
|
Static Public Member Functions | |
static | getInstanceByServerId ($a_server_id) |
static | _getActiveServerList () |
Get active server list. | |
static | _getCronServerIds () |
Get list of acticve servers with option 'SyncCron'. | |
static | _getRoleSyncServerIds () |
Check whether there if there is an active server with option role_sync_active. | |
static | _getPasswordServers () |
Checks whether password synchronistation is enabled for an user. | |
static | _getFirstActiveServer () |
Get first active server. | |
static | _getServerList () |
Get list of all configured servers. | |
static | _getFirstServer () |
Data Fields | |
const | DEBUG = false |
const | DEFAULT_VERSION = 3 |
Private Member Functions | |
prepareFilter ($a_filter) | |
Create brackets for filters if they do not exist. | |
getPearAtributeArray () | |
Get attribute array for pear auth data. | |
read () | |
Read server settings. |
Private Attributes | |
$role_bind_dn = '' | |
$role_bind_pass = '' | |
$role_sync_active = 0 | |
$server_id = null | |
$fallback_urls = array() |
Static Private Attributes | |
static | $instances = array() |
Definition at line 44 of file class.ilLDAPServer.php.
ilLDAPServer::__construct | ( | $a_server_id = 0 | ) |
|
static |
Get active server list.
Definition at line 83 of file class.ilLDAPServer.php.
References $ilDB, $query, $res, and $row.
Referenced by ilAuthUtils\_getActiveAuthModes(), _getFirstActiveServer(), _getPasswordServers(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilAuthUtils\_isExternalAccountEnabled(), and ilObjAuthSettingsGUI\authSettingsObject().
|
static |
Get list of acticve servers with option 'SyncCron'.
Definition at line 103 of file class.ilLDAPServer.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLDAPCronSynchronization\start().
|
static |
Get first active server.
Definition at line 161 of file class.ilLDAPServer.php.
References _getActiveServerList().
Referenced by ilAuthContainerLDAP\__construct(), ilAuthUtils\_getMultipleAuthModeOptions(), ilLDAPRoleAssignmentRules\getDefaultRole(), ilObjAuthSettingsGUI\initLoginForm(), ilLDAPRoleAssignmentRule\isGroupMember(), and ilAuthModeDetermination\read().
|
static |
Definition at line 195 of file class.ilLDAPServer.php.
References _getServerList().
Referenced by ilLDAPSettingsGUI\initServer().
|
static |
Checks whether password synchronistation is enabled for an user.
public
int | user_id |
Definition at line 150 of file class.ilLDAPServer.php.
References _getActiveServerList().
|
static |
Check whether there if there is an active server with option role_sync_active.
public
Definition at line 127 of file class.ilLDAPServer.php.
References $ilDB, $query, $res, and $row.
Referenced by ilLDAPRoleGroupMapping\initServers().
|
static |
Get list of all configured servers.
Definition at line 176 of file class.ilLDAPServer.php.
References $ilDB, $query, $res, and $row.
Referenced by _getFirstServer(), and ilLDAPSettingsGUI\setSubTabs().
ilLDAPServer::create | ( | ) |
Definition at line 590 of file class.ilLDAPServer.php.
References $ilDB, $query, $res, enabledGroupMemberIsDN(), enabledRoleSynchronization(), enabledSyncOnLogin(), enabledSyncPerCron(), getBaseDN(), getBindingType(), getBindPassword(), getBindUser(), getFilter(), getGroupAttribute(), getGroupDN(), getGroupFilter(), getGroupMember(), getGroupName(), getGroupScope(), getGroupUserFilter(), getName(), getRoleBindDN(), getRoleBindPassword(), getSearchBase(), getUrlString(), getUserAttribute(), getUserScope(), getVersion(), isAccountMigrationEnabled(), isActive(), isActiveReferrer(), isActiveTLS(), and isMembershipOptional().
ilLDAPServer::doConnectionCheck | ( | ) |
Check ldap connection and do a fallback to the next server if no connection is possible.
public
Definition at line 258 of file class.ilLDAPServer.php.
References $ilLog, and $query.
ilLDAPServer::enableAccountMigration | ( | $a_status | ) |
Enable account migration.
public
bool | status |
Definition at line 537 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::enabledGroupMemberIsDN | ( | ) |
Definition at line 461 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::enabledRoleSynchronization | ( | ) |
Definition at line 521 of file class.ilLDAPServer.php.
References $role_sync_active.
Referenced by create(), and update().
ilLDAPServer::enabledSyncOnLogin | ( | ) |
Definition at line 485 of file class.ilLDAPServer.php.
Referenced by create(), getPearAtributeArray(), update(), and validate().
ilLDAPServer::enabledSyncPerCron | ( | ) |
Definition at line 493 of file class.ilLDAPServer.php.
Referenced by create(), update(), and validate().
ilLDAPServer::enableGroupMemberIsDN | ( | $a_value | ) |
Definition at line 465 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::enableRoleSynchronization | ( | $a_value | ) |
Definition at line 525 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::enableSyncOnLogin | ( | $a_value | ) |
Definition at line 489 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::enableSyncPerCron | ( | $a_value | ) |
Definition at line 497 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::getBaseDN | ( | ) |
Definition at line 301 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
ilLDAPServer::getBindingType | ( | ) |
Definition at line 325 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
ilLDAPServer::getBindPassword | ( | ) |
Definition at line 348 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
ilLDAPServer::getBindUser | ( | ) |
Definition at line 340 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
ilLDAPServer::getFilter | ( | ) |
Definition at line 372 of file class.ilLDAPServer.php.
References prepareFilter().
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getGroupAttribute | ( | ) |
Definition at line 435 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getGroupDN | ( | ) |
Definition at line 380 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getGroupFilter | ( | ) |
Definition at line 388 of file class.ilLDAPServer.php.
References prepareFilter().
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getGroupMember | ( | ) |
Definition at line 396 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getGroupName | ( | ) |
Definition at line 404 of file class.ilLDAPServer.php.
Referenced by create(), getGroupNames(), toPearAuthArray(), and update().
ilLDAPServer::getGroupNames | ( | ) |
Get group names as array.
public
Definition at line 419 of file class.ilLDAPServer.php.
References $name, and getGroupName().
ilLDAPServer::getGroupScope | ( | ) |
Definition at line 473 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getGroupUserFilter | ( | ) |
Definition at line 456 of file class.ilLDAPServer.php.
Referenced by create(), and update().
|
static |
Definition at line 69 of file class.ilLDAPServer.php.
Referenced by ilLDAPRoleAssignmentRule\isGroupMember().
ilLDAPServer::getName | ( | ) |
Definition at line 285 of file class.ilLDAPServer.php.
References $name.
Referenced by create(), update(), and validate().
|
private |
Get attribute array for pear auth data.
private
Definition at line 780 of file class.ilLDAPServer.php.
References ilLDAPAttributeMapping\_getInstanceByServerId(), enabledSyncOnLogin(), ilLDAPRoleAssignmentRules\getAttributeNames(), getServerId(), and getUserAttribute().
Referenced by toPearAuthArray().
ilLDAPServer::getRoleBindDN | ( | ) |
Definition at line 505 of file class.ilLDAPServer.php.
References $role_bind_dn.
Referenced by create(), and update().
ilLDAPServer::getRoleBindPassword | ( | ) |
Definition at line 513 of file class.ilLDAPServer.php.
References $role_bind_pass.
Referenced by create(), and update().
ilLDAPServer::getSearchBase | ( | ) |
Definition at line 356 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getServerId | ( | ) |
Definition at line 207 of file class.ilLDAPServer.php.
References $server_id.
Referenced by getPearAtributeArray(), and update().
ilLDAPServer::getUrl | ( | ) |
Definition at line 221 of file class.ilLDAPServer.php.
Referenced by ilLDAPQuery\__construct(), toPearAuthArray(), and validate().
ilLDAPServer::getUrlString | ( | ) |
Definition at line 246 of file class.ilLDAPServer.php.
Referenced by create(), and update().
ilLDAPServer::getUserAttribute | ( | ) |
Definition at line 364 of file class.ilLDAPServer.php.
Referenced by create(), getPearAtributeArray(), toPearAuthArray(), update(), and validate().
ilLDAPServer::getUserScope | ( | ) |
Definition at line 481 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::getVersion | ( | ) |
Definition at line 293 of file class.ilLDAPServer.php.
References DEFAULT_VERSION.
Referenced by create(), toPearAuthArray(), update(), and validate().
ilLDAPServer::isAccountMigrationEnabled | ( | ) |
enabled account migration
public
Definition at line 548 of file class.ilLDAPServer.php.
Referenced by create(), and update().
ilLDAPServer::isActive | ( | ) |
Definition at line 217 of file class.ilLDAPServer.php.
Referenced by create(), and update().
ilLDAPServer::isActiveReferrer | ( | ) |
Definition at line 309 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
ilLDAPServer::isActiveTLS | ( | ) |
Definition at line 317 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
ilLDAPServer::isMembershipOptional | ( | ) |
Definition at line 448 of file class.ilLDAPServer.php.
Referenced by create(), and update().
|
private |
Create brackets for filters if they do not exist.
private
string | filter |
Definition at line 753 of file class.ilLDAPServer.php.
References $filter.
Referenced by getFilter(), and getGroupFilter().
|
private |
Read server settings.
Definition at line 806 of file class.ilLDAPServer.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, enableAccountMigration(), enableGroupMemberIsDN(), enableRoleSynchronization(), enableSyncOnLogin(), enableSyncPerCron(), setBaseDN(), setBindingType(), setBindPassword(), setBindUser(), setFilter(), setGroupAttribute(), setGroupDN(), setGroupFilter(), setGroupMember(), setGroupName(), setGroupScope(), setGroupUserFilter(), setName(), setRoleBindDN(), setRoleBindPassword(), setSearchBase(), setUrl(), setUserAttribute(), setUserScope(), setVersion(), toggleActive(), toggleMembershipOptional(), toggleReferrer(), and toggleTLS().
Referenced by __construct().
ilLDAPServer::setBaseDN | ( | $a_base_dn | ) |
Definition at line 305 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setBindingType | ( | $a_type | ) |
Definition at line 329 of file class.ilLDAPServer.php.
References IL_LDAP_BIND_ANONYMOUS, and IL_LDAP_BIND_USER.
Referenced by read().
ilLDAPServer::setBindPassword | ( | $a_password | ) |
Definition at line 352 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setBindUser | ( | $a_user | ) |
Definition at line 344 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setFilter | ( | $a_filter | ) |
Definition at line 376 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setGlobalRole | ( | $a_role | ) |
Definition at line 501 of file class.ilLDAPServer.php.
ilLDAPServer::setGroupAttribute | ( | $a_value | ) |
Definition at line 439 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setGroupDN | ( | $a_value | ) |
Definition at line 384 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setGroupFilter | ( | $a_value | ) |
Definition at line 392 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setGroupMember | ( | $a_value | ) |
Definition at line 400 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setGroupName | ( | $a_value | ) |
Definition at line 408 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setGroupScope | ( | $a_value | ) |
Definition at line 469 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setGroupUserFilter | ( | $a_filter | ) |
Definition at line 452 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setName | ( | $a_name | ) |
Definition at line 289 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setRoleBindDN | ( | $a_value | ) |
Definition at line 509 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setRoleBindPassword | ( | $a_value | ) |
Definition at line 517 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setSearchBase | ( | $a_search_base | ) |
Definition at line 360 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setUrl | ( | $a_url | ) |
Definition at line 225 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setUserAttribute | ( | $a_user_attr | ) |
Definition at line 368 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setUserScope | ( | $a_value | ) |
Definition at line 477 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::setVersion | ( | $a_version | ) |
Definition at line 297 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::toggleActive | ( | $a_status | ) |
Definition at line 213 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::toggleMembershipOptional | ( | $a_status | ) |
Definition at line 444 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::toggleReferrer | ( | $a_status | ) |
Definition at line 313 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::toggleTLS | ( | $a_status | ) |
Definition at line 321 of file class.ilLDAPServer.php.
Referenced by read().
ilLDAPServer::toPearAuthArray | ( | ) |
Creates an array of options compatible to PEAR Auth.
Definition at line 686 of file class.ilLDAPServer.php.
References DEBUG, enabledGroupMemberIsDN(), getBaseDN(), getBindingType(), getBindPassword(), getBindUser(), getFilter(), getGroupAttribute(), getGroupDN(), getGroupFilter(), getGroupMember(), getGroupName(), getGroupScope(), getPearAtributeArray(), getSearchBase(), getUrl(), getUserAttribute(), getUserScope(), getVersion(), IL_LDAP_BIND_USER, IL_LDAP_SCOPE_BASE, IL_LDAP_SCOPE_ONE, isActiveReferrer(), and isActiveTLS().
ilLDAPServer::update | ( | ) |
Definition at line 641 of file class.ilLDAPServer.php.
References $ilDB, $query, $res, enabledGroupMemberIsDN(), enabledRoleSynchronization(), enabledSyncOnLogin(), enabledSyncPerCron(), getBaseDN(), getBindingType(), getBindPassword(), getBindUser(), getFilter(), getGroupAttribute(), getGroupDN(), getGroupFilter(), getGroupMember(), getGroupName(), getGroupScope(), getGroupUserFilter(), getName(), getRoleBindDN(), getRoleBindPassword(), getSearchBase(), getServerId(), getUrlString(), getUserAttribute(), getUserScope(), getVersion(), isAccountMigrationEnabled(), isActive(), isActiveReferrer(), isActiveTLS(), and isMembershipOptional().
ilLDAPServer::validate | ( | ) |
Validate user input.
@return | boolean |
Definition at line 559 of file class.ilLDAPServer.php.
References $ilErr, enabledSyncOnLogin(), enabledSyncPerCron(), getBaseDN(), getBindingType(), getBindPassword(), getBindUser(), getName(), getUrl(), getUserAttribute(), getVersion(), IL_LDAP_BIND_USER, and isActiveTLS().
|
private |
Definition at line 56 of file class.ilLDAPServer.php.
|
staticprivate |
Definition at line 46 of file class.ilLDAPServer.php.
|
private |
Definition at line 51 of file class.ilLDAPServer.php.
Referenced by getRoleBindDN().
|
private |
Definition at line 52 of file class.ilLDAPServer.php.
Referenced by getRoleBindPassword().
|
private |
Definition at line 53 of file class.ilLDAPServer.php.
Referenced by enabledRoleSynchronization().
|
private |
Definition at line 55 of file class.ilLDAPServer.php.
Referenced by getServerId().
const ilLDAPServer::DEBUG = false |
Definition at line 48 of file class.ilLDAPServer.php.
Referenced by toPearAuthArray().
const ilLDAPServer::DEFAULT_VERSION = 3 |
Definition at line 49 of file class.ilLDAPServer.php.
Referenced by getVersion().