ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
Private Member Functions | |
readAllUsers () | |
Fetch all users This function splits the query to filters like e.g (uid=a*) (uid=b*)... 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() | |
Definition at line 42 of file class.ilLDAPQuery.php.
ilLDAPQuery::__construct | ( | ilLDAPServer | $a_server, |
$a_url = '' |
|||
) |
Constructur.
private
object | ilLDAPServer or subclass |
ilLDAPQueryException |
Definition at line 62 of file class.ilLDAPQuery.php.
References $GLOBALS, ilLDAPAttributeMapping\_getInstanceByServerId(), connect(), fetchUserProfileFields(), and settings().
ilLDAPQuery::__destruct | ( | ) |
Destructor unbind from ldap server.
private
Definition at line 667 of file class.ilLDAPQuery.php.
ilLDAPQuery::bind | ( | $a_binding_type = IL_LDAP_BIND_DEFAULT , |
|
$a_user_dn = '' , |
|||
$a_password = '' |
|||
) |
Bind to LDAP server.
public
int | binding_type IL_LDAP_BIND_DEFAULT || IL_LDAP_BIND_ADMIN |
ilLDAPQueryException | on connection failure. |
Definition at line 569 of file class.ilLDAPQuery.php.
References $pass, $user, 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().
ilLDAPQuery::checkGroupMembership | ( | $a_ldap_user_name, | |
$ldap_user_data | |||
) |
check group membership
string | login name |
array | user data |
Definition at line 272 of file class.ilLDAPQuery.php.
References $res, $user, ilLogLevel\DEBUG, getLogger(), getServer(), queryByScope(), and readUserData().
|
private |
Connect to LDAP server.
private
ilLDAPQueryException |
Definition at line 531 of file class.ilLDAPQuery.php.
References settings().
Referenced by __construct().
|
private |
Fetch group member ids.
public
Definition at line 350 of file class.ilLDAPQuery.php.
References $data, $name, $res, queryByScope(), readUserData(), and settings().
Referenced by fetchUsers().
ilLDAPQuery::fetchUser | ( | $a_name | ) |
Get one user by login name.
public
string | login name |
Definition at line 105 of file class.ilLDAPQuery.php.
References $users, and readUserData().
|
private |
fetch required fields of user profile data
private
Definition at line 632 of file class.ilLDAPQuery.php.
References ilLDAPRoleAssignmentRules\getAttributeNames(), getServer(), and settings().
Referenced by __construct().
ilLDAPQuery::fetchUsers | ( | ) |
Fetch all users.
public
Definition at line 121 of file class.ilLDAPQuery.php.
References fetchGroupMembers(), readAllUsers(), and settings().
ilLDAPQuery::getLogger | ( | ) |
Get logger.
Definition at line 93 of file class.ilLDAPQuery.php.
References $log.
Referenced by checkGroupMembership(), and queryByScope().
ilLDAPQuery::getServer | ( | ) |
Get server.
Definition at line 84 of file class.ilLDAPQuery.php.
References $settings.
Referenced by checkGroupMembership(), and fetchUserProfileFields().
ilLDAPQuery::modAdd | ( | $a_dn, | |
$a_attribute | |||
) |
Add value to an existing attribute.
public
ilLDAPQueryException |
Definition at line 178 of file class.ilLDAPQuery.php.
ilLDAPQuery::modDelete | ( | $a_dn, | |
$a_attribute | |||
) |
Delete value from an existing attribute.
public
ilLDAPQueryException |
Definition at line 192 of file class.ilLDAPQuery.php.
|
private |
Parse authentication mode.
Definition at line 478 of file class.ilLDAPQuery.php.
References settings().
ilLDAPQuery::query | ( | $a_search_base, | |
$a_filter, | |||
$a_scope, | |||
$a_attributes | |||
) |
Perform a query.
public
string | search base |
string | filter |
int | scope |
array | attributes |
ilLDAPQueryException |
Definition at line 157 of file class.ilLDAPQuery.php.
References $res, and queryByScope().
|
private |
Query by scope IL_SCOPE_SUB => ldap_search IL_SCOPE_ONE => ldap_list.
private
Definition at line 492 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(), readAllUsers(), and readUserData().
|
private |
Fetch all users This function splits the query to filters like e.g (uid=a*) (uid=b*)...
This avoids AD page_size_limit
public
Definition at line 208 of file class.ilLDAPQuery.php.
References $data, $res, queryByScope(), readUserData(), and settings().
Referenced by fetchUsers().
|
private |
Read user data.
bool | check dn |
bool | use group filter private |
Definition at line 410 of file class.ilLDAPQuery.php.
References $res, ilObjUser\_checkExternalAuthAccount(), IL_LDAP_SCOPE_BASE, queryByScope(), and settings().
Referenced by checkGroupMembership(), fetchGroupMembers(), fetchUser(), and readAllUsers().
|
private |
|
private |
Definition at line 44 of file class.ilLDAPQuery.php.
|
private |
Definition at line 50 of file class.ilLDAPQuery.php.
Referenced by getLogger().
|
private |
Definition at line 45 of file class.ilLDAPQuery.php.
Referenced by getServer().
|
private |
Definition at line 52 of file class.ilLDAPQuery.php.