|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Collaboration diagram for ilLDAPQuery:Public Member Functions | |
| __construct (ilLDAPServer $a_server, $a_url='') | |
| Constructur. More... | |
| getServer () | |
| Get server. More... | |
| getLogger () | |
| Get logger. More... | |
| fetchUser ($a_name) | |
| Get one user by login name. More... | |
| fetchUsers () | |
| Fetch all users. More... | |
| query ($a_search_base, $a_filter, $a_scope, $a_attributes) | |
| Perform a query. More... | |
| modAdd ($a_dn, $a_attribute) | |
| Add value to an existing attribute. More... | |
| modDelete ($a_dn, $a_attribute) | |
| Delete value from an existing attribute. More... | |
| checkGroupMembership ($a_ldap_user_name, $ldap_user_data) | |
| check group membership More... | |
| bind ($a_binding_type=IL_LDAP_BIND_DEFAULT, $a_user_dn='', $a_password='') | |
| Bind to LDAP server. More... | |
| __destruct () | |
| Destructor unbind from ldap server. More... | |
| checkPaginationEnabled () | |
| Check if pagination is enabled (rfc: 2696) More... | |
Data Fields | |
| const | LDAP_BIND_DEFAULT = 0 |
| const | LDAP_BIND_ADMIN = 1 |
| const | LDAP_BIND_TEST = 2 |
| const | LDAP_BIND_AUTH = 10 |
| const | IL_LDAP_CONTROL_PAGEDRESULTS = '1.2.840.113556.1.4.319' |
| const | IL_LDAP_SUPPORTED_CONTROL = 'supportedControl' |
| const | PAGINATION_SIZE = 100 |
Private Member Functions | |
| readAllUsers () | |
| Fetch all users This function splits the query to filters like e.g (uid=a*) (uid=b*)... This avoids AD page_size_limit. More... | |
| runReadAllUsersPaged ($dn) | |
| read all users with ldap paging More... | |
| runReadAllUsersPartial ($dn) | |
| read all users partial by alphabet More... | |
| fetchGroupMembers ($a_name='') | |
| Fetch group member ids. More... | |
| readUserData ($a_name, $a_check_dn=false, $a_try_group_user_filter=false) | |
| Read user data. More... | |
| parseAuthMode () | |
| Parse authentication mode. More... | |
| queryByScope ($a_scope, $a_base_dn, $a_filter, $a_attributes) | |
| Query by scope IL_SCOPE_SUB => ldap_search IL_SCOPE_ONE => ldap_list. More... | |
| connect () | |
| Connect to LDAP server. More... | |
| fetchUserProfileFields () | |
| fetch required fields of user profile data More... | |
| unbind () | |
| Unbind. More... | |
Private Attributes | |
| $ldap_server_url = null | |
| $settings = null | |
| $log = null | |
| $user_fields = array() | |
| $lh | |
| ilLDAPQuery::__construct | ( | ilLDAPServer | $a_server, |
$a_url = '' |
|||
| ) |
Constructur.
@access private
| object | ilLDAPServer or subclass |
| ilLDAPQueryException |
Definition at line 85 of file class.ilLDAPQuery.php.
References $GLOBALS, ilLDAPAttributeMapping\_getInstanceByServerId(), connect(), fetchUserProfileFields(), and settings().
Here is the call graph for this function:| ilLDAPQuery::__destruct | ( | ) |
Destructor unbind from ldap server.
@access private
Definition at line 767 of file class.ilLDAPQuery.php.
| ilLDAPQuery::bind | ( | $a_binding_type = IL_LDAP_BIND_DEFAULT, |
|
$a_user_dn = '', |
|||
$a_password = '' |
|||
| ) |
Bind to LDAP server.
@access public
| int | binding_type IL_LDAP_BIND_DEFAULT || IL_LDAP_BIND_ADMIN |
| ilLDAPQueryException | on connection failure. |
Definition at line 669 of file class.ilLDAPQuery.php.
References $pass, ilLDAPServer\DEFAULT_NETWORK_TIMEOUT, IL_LDAP_BIND_ADMIN, IL_LDAP_BIND_AUTH, IL_LDAP_BIND_DEFAULT, IL_LDAP_BIND_TEST, IL_LDAP_BIND_USER, and settings().
Here is the call graph for this function:| ilLDAPQuery::checkGroupMembership | ( | $a_ldap_user_name, | |
| $ldap_user_data | |||
| ) |
check group membership
| string | login name |
| array | user data |
Definition at line 369 of file class.ilLDAPQuery.php.
References $res, ilLogLevel\DEBUG, getLogger(), getServer(), queryByScope(), and readUserData().
Here is the call graph for this function:| ilLDAPQuery::checkPaginationEnabled | ( | ) |
Check if pagination is enabled (rfc: 2696)
Definition at line 778 of file class.ilLDAPQuery.php.
References $result, and getServer().
Referenced by readAllUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Connect to LDAP server.
@access private
| ilLDAPQueryException |
Definition at line 631 of file class.ilLDAPQuery.php.
References settings().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Fetch group member ids.
@access public
Definition at line 448 of file class.ilLDAPQuery.php.
References $data, $name, $res, queryByScope(), readUserData(), and settings().
Referenced by fetchUsers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPQuery::fetchUser | ( | $a_name | ) |
Get one user by login name.
@access public
| string | login name |
Definition at line 128 of file class.ilLDAPQuery.php.
References readUserData().
Here is the call graph for this function:
|
private |
fetch required fields of user profile data
@access private
Definition at line 732 of file class.ilLDAPQuery.php.
References ilLDAPRoleAssignmentRules\getAttributeNames(), and settings().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPQuery::fetchUsers | ( | ) |
Fetch all users.
@access public
Definition at line 144 of file class.ilLDAPQuery.php.
References fetchGroupMembers(), readAllUsers(), and settings().
Here is the call graph for this function:| ilLDAPQuery::getLogger | ( | ) |
Get logger.
Definition at line 116 of file class.ilLDAPQuery.php.
References $log.
Referenced by checkGroupMembership(), and queryByScope().
Here is the caller graph for this function:| ilLDAPQuery::getServer | ( | ) |
Get server.
Definition at line 107 of file class.ilLDAPQuery.php.
References $settings.
Referenced by checkGroupMembership(), and checkPaginationEnabled().
Here is the caller graph for this function:| ilLDAPQuery::modAdd | ( | $a_dn, | |
| $a_attribute | |||
| ) |
Add value to an existing attribute.
@access public
| ilLDAPQueryException |
Definition at line 201 of file class.ilLDAPQuery.php.
| ilLDAPQuery::modDelete | ( | $a_dn, | |
| $a_attribute | |||
| ) |
Delete value from an existing attribute.
@access public
| ilLDAPQueryException |
Definition at line 215 of file class.ilLDAPQuery.php.
|
private |
Parse authentication mode.
Definition at line 578 of file class.ilLDAPQuery.php.
References settings().
Here is the call graph for this function:| ilLDAPQuery::query | ( | $a_search_base, | |
| $a_filter, | |||
| $a_scope, | |||
| $a_attributes | |||
| ) |
Perform a query.
@access public
| string | search base |
| string | filter |
| int | scope |
| array | attributes |
| ilLDAPQueryException |
Definition at line 180 of file class.ilLDAPQuery.php.
References $res, and queryByScope().
Here is the call graph for this function:
|
private |
Query by scope IL_SCOPE_SUB => ldap_search IL_SCOPE_ONE => ldap_list.
@access private
Definition at line 592 of file class.ilLDAPQuery.php.
References $res, getLogger(), IL_LDAP_SCOPE_BASE, IL_LDAP_SCOPE_ONE, and IL_LDAP_SCOPE_SUB.
Referenced by checkGroupMembership(), fetchGroupMembers(), query(), readUserData(), runReadAllUsersPaged(), and runReadAllUsersPartial().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Fetch all users This function splits the query to filters like e.g (uid=a*) (uid=b*)... This avoids AD page_size_limit.
@access public
Definition at line 231 of file class.ilLDAPQuery.php.
References $data, Vendor\Package\$e, checkPaginationEnabled(), readUserData(), runReadAllUsersPaged(), runReadAllUsersPartial(), and settings().
Referenced by fetchUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Read user data.
| bool | check dn |
| bool | use group filter @access private |
Definition at line 509 of file class.ilLDAPQuery.php.
References $res, ilObjUser\_checkExternalAuthAccount(), IL_LDAP_SCOPE_BASE, queryByScope(), and settings().
Referenced by checkGroupMembership(), fetchGroupMembers(), fetchUser(), and readAllUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
read all users with ldap paging
| string | $dn |
| ilLDAPPagingException |
Definition at line 275 of file class.ilLDAPQuery.php.
References Vendor\Package\$e, $res, queryByScope(), and settings().
Referenced by readAllUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
read all users partial by alphabet
| string | $dn |
Definition at line 324 of file class.ilLDAPQuery.php.
References $res, queryByScope(), and settings().
Referenced by readAllUsers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Unbind.
@access private
Definition at line 752 of file class.ilLDAPQuery.php.
|
private |
Definition at line 61 of file class.ilLDAPQuery.php.
|
private |
Definition at line 75 of file class.ilLDAPQuery.php.
|
private |
Definition at line 67 of file class.ilLDAPQuery.php.
Referenced by getLogger().
|
private |
Definition at line 62 of file class.ilLDAPQuery.php.
Referenced by getServer().
|
private |
Definition at line 69 of file class.ilLDAPQuery.php.
| const ilLDAPQuery::IL_LDAP_CONTROL_PAGEDRESULTS = '1.2.840.113556.1.4.319' |
Definition at line 49 of file class.ilLDAPQuery.php.
| const ilLDAPQuery::IL_LDAP_SUPPORTED_CONTROL = 'supportedControl' |
Definition at line 54 of file class.ilLDAPQuery.php.
| const ilLDAPQuery::LDAP_BIND_ADMIN = 1 |
Definition at line 41 of file class.ilLDAPQuery.php.
| const ilLDAPQuery::LDAP_BIND_AUTH = 10 |
Definition at line 43 of file class.ilLDAPQuery.php.
| const ilLDAPQuery::LDAP_BIND_DEFAULT = 0 |
Definition at line 40 of file class.ilLDAPQuery.php.
Referenced by ilLDAPUserSynchronisation\readUserData().
| const ilLDAPQuery::LDAP_BIND_TEST = 2 |
Definition at line 42 of file class.ilLDAPQuery.php.
| const ilLDAPQuery::PAGINATION_SIZE = 100 |
Definition at line 59 of file class.ilLDAPQuery.php.