|
ILIAS
Release_3_10_x_branch Revision 61812
|
Collaboration diagram for ilLDAPServer:Static Public Member Functions | |
| 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 | |
| $server_id = null | |
| $fallback_urls = array() | |
Definition at line 44 of file class.ilLDAPServer.php.
| ilLDAPServer::__construct | ( | $a_server_id = 0 | ) |
|
static |
Get active server list.
Definition at line 68 of file class.ilLDAPServer.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilAuthUtils\_getActiveAuthModes(), _getFirstActiveServer(), _getPasswordServers(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilAuthUtils\_isExternalAccountEnabled(), and ilObjAuthSettingsGUI\authSettingsObject().
Here is the caller graph for this function:
|
static |
Get list of acticve servers with option 'SyncCron'.
Definition at line 88 of file class.ilLDAPServer.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPCronSynchronization\start().
Here is the caller graph for this function:
|
static |
Get first active server.
Definition at line 145 of file class.ilLDAPServer.php.
References _getActiveServerList().
Referenced by ilAuthUtils\_getMultipleAuthModeOptions(), ilAuthUtils\_initAuth(), ilLDAPSettingsGUI\addRoleAssignment(), ilAuthLDAP\initServer(), ilObjAuthSettingsGUI\loginInfoObject(), and ilAuthModeDetermination\read().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 178 of file class.ilLDAPServer.php.
References _getServerList().
Referenced by ilLDAPSettingsGUI\initServer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Checks whether password synchronistation is enabled for an user.
public
| int | user_id |
Definition at line 134 of file class.ilLDAPServer.php.
References _getActiveServerList().
Here is the call graph for this function:
|
static |
Check whether there if there is an active server with option role_sync_active.
public
Definition at line 112 of file class.ilLDAPServer.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPRoleGroupMapping\initServers().
Here is the caller graph for this function:
|
static |
Get list of all configured servers.
Definition at line 160 of file class.ilLDAPServer.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by _getFirstServer(), and ilLDAPSettingsGUI\setSubTabs().
Here is the caller graph for this function:| ilLDAPServer::create | ( | ) |
Definition at line 573 of file class.ilLDAPServer.php.
References enabledGroupMemberIsDN(), enabledRoleSynchronization(), enabledSyncOnLogin(), enabledSyncPerCron(), getBaseDN(), getBindingType(), getBindPassword(), getBindUser(), getFilter(), getGroupAttribute(), getGroupDN(), getGroupFilter(), getGroupMember(), getGroupName(), getGroupScope(), getGroupUserFilter(), getName(), getRoleBindDN(), getRoleBindPassword(), getSearchBase(), getUrlString(), getUserAttribute(), getUserScope(), getVersion(), isActive(), isActiveReferrer(), isActiveTLS(), and isMembershipOptional().
Here is the call graph for this function:| ilLDAPServer::doConnectionCheck | ( | ) |
Check ldap connection and do a fallback to the next server if no connection is possible.
public
Definition at line 241 of file class.ilLDAPServer.php.
References $ilLog.
| ilLDAPServer::enableAccountMigration | ( | $a_status | ) |
Enable account migration.
public
| bool | status |
Definition at line 520 of file class.ilLDAPServer.php.
| ilLDAPServer::enabledGroupMemberIsDN | ( | ) |
Definition at line 444 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::enabledRoleSynchronization | ( | ) |
Definition at line 504 of file class.ilLDAPServer.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPServer::enabledSyncOnLogin | ( | ) |
Definition at line 468 of file class.ilLDAPServer.php.
Referenced by create(), getPearAtributeArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::enabledSyncPerCron | ( | ) |
Definition at line 476 of file class.ilLDAPServer.php.
Referenced by create(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::enableGroupMemberIsDN | ( | $a_value | ) |
Definition at line 448 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::enableRoleSynchronization | ( | $a_value | ) |
Definition at line 508 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::enableSyncOnLogin | ( | $a_value | ) |
Definition at line 472 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::enableSyncPerCron | ( | $a_value | ) |
Definition at line 480 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::getBaseDN | ( | ) |
Definition at line 284 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::getBindingType | ( | ) |
Definition at line 308 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::getBindPassword | ( | ) |
Definition at line 331 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::getBindUser | ( | ) |
Definition at line 323 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::getFilter | ( | ) |
Definition at line 355 of file class.ilLDAPServer.php.
References prepareFilter().
Referenced by create(), toPearAuthArray(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPServer::getGroupAttribute | ( | ) |
Definition at line 418 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getGroupDN | ( | ) |
Definition at line 363 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getGroupFilter | ( | ) |
Definition at line 371 of file class.ilLDAPServer.php.
References prepareFilter().
Referenced by create(), toPearAuthArray(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPServer::getGroupMember | ( | ) |
Definition at line 379 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getGroupName | ( | ) |
Definition at line 387 of file class.ilLDAPServer.php.
Referenced by create(), getGroupNames(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getGroupNames | ( | ) |
Get group names as array.
public
Definition at line 402 of file class.ilLDAPServer.php.
References getGroupName().
Here is the call graph for this function:| ilLDAPServer::getGroupScope | ( | ) |
Definition at line 456 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getGroupUserFilter | ( | ) |
Definition at line 439 of file class.ilLDAPServer.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPServer::getName | ( | ) |
Definition at line 268 of file class.ilLDAPServer.php.
Referenced by create(), update(), and validate().
Here is the caller graph for this function:
|
private |
Get attribute array for pear auth data.
private
Definition at line 748 of file class.ilLDAPServer.php.
References ilLDAPRoleAssignments\_getDistinctAttributeNamesByServerId(), ilLDAPAttributeMapping\_getInstanceByServerId(), enabledSyncOnLogin(), getServerId(), and getUserAttribute().
Referenced by toPearAuthArray().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPServer::getRoleBindDN | ( | ) |
Definition at line 488 of file class.ilLDAPServer.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPServer::getRoleBindPassword | ( | ) |
Definition at line 496 of file class.ilLDAPServer.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPServer::getSearchBase | ( | ) |
Definition at line 339 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getServerId | ( | ) |
Definition at line 190 of file class.ilLDAPServer.php.
References $server_id.
Referenced by ilLDAPRoleAssignments\_getInstanceByServer(), getPearAtributeArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getUrl | ( | ) |
Definition at line 204 of file class.ilLDAPServer.php.
Referenced by ilLDAPQuery\__construct(), toPearAuthArray(), and validate().
Here is the caller graph for this function:| ilLDAPServer::getUrlString | ( | ) |
Definition at line 229 of file class.ilLDAPServer.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPServer::getUserAttribute | ( | ) |
Definition at line 347 of file class.ilLDAPServer.php.
Referenced by create(), getPearAtributeArray(), toPearAuthArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::getUserScope | ( | ) |
Definition at line 464 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::getVersion | ( | ) |
Definition at line 276 of file class.ilLDAPServer.php.
References DEFAULT_VERSION.
Referenced by create(), toPearAuthArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::isAccountMigrationEnabled | ( | ) |
enabled account migration
public
Definition at line 531 of file class.ilLDAPServer.php.
| ilLDAPServer::isActive | ( | ) |
Definition at line 200 of file class.ilLDAPServer.php.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPServer::isActiveReferrer | ( | ) |
Definition at line 292 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), and update().
Here is the caller graph for this function:| ilLDAPServer::isActiveTLS | ( | ) |
Definition at line 300 of file class.ilLDAPServer.php.
Referenced by create(), toPearAuthArray(), update(), and validate().
Here is the caller graph for this function:| ilLDAPServer::isMembershipOptional | ( | ) |
Definition at line 431 of file class.ilLDAPServer.php.
Referenced by create(), and update().
Here is the caller graph for this function:
|
private |
Create brackets for filters if they do not exist.
private
| string | filter |
Definition at line 721 of file class.ilLDAPServer.php.
Referenced by getFilter(), and getGroupFilter().
Here is the caller graph for this function:
|
private |
Read server settings.
Definition at line 772 of file class.ilLDAPServer.php.
References $res, DB_FETCHMODE_OBJECT, 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPServer::setBaseDN | ( | $a_base_dn | ) |
Definition at line 288 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setBindingType | ( | $a_type | ) |
Definition at line 312 of file class.ilLDAPServer.php.
References IL_LDAP_BIND_ANONYMOUS, and IL_LDAP_BIND_USER.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setBindPassword | ( | $a_password | ) |
Definition at line 335 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setBindUser | ( | $a_user | ) |
Definition at line 327 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setFilter | ( | $a_filter | ) |
Definition at line 359 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setGlobalRole | ( | $a_role | ) |
Definition at line 484 of file class.ilLDAPServer.php.
| ilLDAPServer::setGroupAttribute | ( | $a_value | ) |
Definition at line 422 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setGroupDN | ( | $a_value | ) |
Definition at line 367 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setGroupFilter | ( | $a_value | ) |
Definition at line 375 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setGroupMember | ( | $a_value | ) |
Definition at line 383 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setGroupName | ( | $a_value | ) |
Definition at line 391 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setGroupScope | ( | $a_value | ) |
Definition at line 452 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setGroupUserFilter | ( | $a_filter | ) |
Definition at line 435 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setName | ( | $a_name | ) |
Definition at line 272 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setRoleBindDN | ( | $a_value | ) |
Definition at line 492 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setRoleBindPassword | ( | $a_value | ) |
Definition at line 500 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setSearchBase | ( | $a_search_base | ) |
Definition at line 343 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setUrl | ( | $a_url | ) |
Definition at line 208 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setUserAttribute | ( | $a_user_attr | ) |
Definition at line 351 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setUserScope | ( | $a_value | ) |
Definition at line 460 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::setVersion | ( | $a_version | ) |
Definition at line 280 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::toggleActive | ( | $a_status | ) |
Definition at line 196 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::toggleMembershipOptional | ( | $a_status | ) |
Definition at line 427 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::toggleReferrer | ( | $a_status | ) |
Definition at line 296 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::toggleTLS | ( | $a_status | ) |
Definition at line 304 of file class.ilLDAPServer.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPServer::toPearAuthArray | ( | ) |
Creates an array of options compatible to PEAR Auth.
Definition at line 654 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().
Here is the call graph for this function:| ilLDAPServer::update | ( | ) |
Definition at line 612 of file class.ilLDAPServer.php.
References 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(), isActive(), isActiveReferrer(), isActiveTLS(), and isMembershipOptional().
Here is the call graph for this function:| ilLDAPServer::validate | ( | ) |
Validate user input.
| @return | boolean |
Definition at line 542 of file class.ilLDAPServer.php.
References $ilErr, enabledSyncOnLogin(), enabledSyncPerCron(), getBaseDN(), getBindingType(), getBindPassword(), getBindUser(), getName(), getUrl(), getUserAttribute(), getVersion(), IL_LDAP_BIND_USER, and isActiveTLS().
Here is the call graph for this function:
|
private |
Definition at line 50 of file class.ilLDAPServer.php.
|
private |
Definition at line 49 of file class.ilLDAPServer.php.
Referenced by getServerId().
| const ilLDAPServer::DEBUG = false |
Definition at line 46 of file class.ilLDAPServer.php.
Referenced by toPearAuthArray().
| const ilLDAPServer::DEFAULT_VERSION = 3 |
Definition at line 47 of file class.ilLDAPServer.php.
Referenced by getVersion().