ILIAS
Release_4_2_x_branch Revision 61807
|
Public Member Functions | |
__construct (ilLDAPServer $a_server, $a_url= '') | |
Constructur. | |
fetchUser ($a_name) | |
Get one user by login name. | |
fetchUsers () | |
Fetch all users. | |
query ($a_search_base, $a_filter, $a_scope, $a_attributes) | |
Perform a query. | |
modAdd ($a_dn, $a_attribute) | |
Add value to an existing attribute. | |
modDelete ($a_dn, $a_attribute) | |
Delete value from an existing attribute. | |
bind ($a_binding_type=IL_LDAP_BIND_DEFAULT, $a_user_dn= '', $a_password= '') | |
Bind to LDAP server. | |
__destruct () | |
Destructor unbind from ldap server. |
Private Member Functions | |
readAllUsers () | |
Fetch all users This function splits the query to filters like e.g (uid=a*) (uid=b*)... | |
fetchGroupMembers ($a_name= '') | |
Fetch group member ids. | |
readUserData ($a_name, $a_check_dn=true, $a_try_group_user_filter=false) | |
Read user data. | |
parseAuthMode () | |
Parse authentication mode. | |
queryByScope ($a_scope, $a_base_dn, $a_filter, $a_attributes) | |
Query by scope IL_SCOPE_SUB => ldap_search IL_SCOPE_ONE => ldap_list. | |
connect () | |
Connect to LDAP server. | |
fetchUserProfileFields () | |
fetch required fields of user profile data | |
unbind () | |
Unbind. |
Private Attributes | |
$ldap_server_url = null | |
$settings = null | |
$log = null | |
$user_fields = array() |
Definition at line 41 of file class.ilLDAPQuery.php.
ilLDAPQuery::__construct | ( | ilLDAPServer | $a_server, |
$a_url = '' |
|||
) |
Constructur.
private
object | ilLDAPServer or subclass |
ilLDAPQueryException |
Definition at line 57 of file class.ilLDAPQuery.php.
References $ilLog, ilLDAPAttributeMapping\_getInstanceByServerId(), connect(), fetchUserProfileFields(), and ilLDAPServer\getUrl().
ilLDAPQuery::__destruct | ( | ) |
Destructor unbind from ldap server.
private
Definition at line 606 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 506 of file class.ilLDAPQuery.php.
References $pass, IL_LDAP_BIND_ADMIN, IL_LDAP_BIND_DEFAULT, and IL_LDAP_BIND_TEST.
|
private |
Connect to LDAP server.
private
ilLDAPQueryException | on connection failure. |
Definition at line 460 of file class.ilLDAPQuery.php.
Referenced by __construct().
|
private |
Fetch group member ids.
public
Definition at line 273 of file class.ilLDAPQuery.php.
References $data, $res, queryByScope(), and readUserData().
Referenced by fetchUsers().
ilLDAPQuery::fetchUser | ( | $a_name | ) |
Get one user by login name.
public
string | login name |
Definition at line 86 of file class.ilLDAPQuery.php.
References readUserData().
|
private |
fetch required fields of user profile data
private
Definition at line 570 of file class.ilLDAPQuery.php.
References ilLDAPRoleAssignmentRules\getAttributeNames().
Referenced by __construct().
ilLDAPQuery::fetchUsers | ( | ) |
Fetch all users.
public
Definition at line 107 of file class.ilLDAPQuery.php.
References fetchGroupMembers(), and readAllUsers().
ilLDAPQuery::modAdd | ( | $a_dn, | |
$a_attribute | |||
) |
Add value to an existing attribute.
public
ilLDAPQueryException |
Definition at line 170 of file class.ilLDAPQuery.php.
ilLDAPQuery::modDelete | ( | $a_dn, | |
$a_attribute | |||
) |
Delete value from an existing attribute.
public
ilLDAPQueryException |
Definition at line 185 of file class.ilLDAPQuery.php.
|
private |
Parse authentication mode.
Definition at line 408 of file class.ilLDAPQuery.php.
References ilAuthUtils\_getAuthModeName().
Referenced by readUserData().
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 150 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 426 of file class.ilLDAPQuery.php.
References $res, IL_LDAP_SCOPE_BASE, IL_LDAP_SCOPE_ONE, and IL_LDAP_SCOPE_SUB.
Referenced by 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 202 of file class.ilLDAPQuery.php.
References $data, $res, queryByScope(), and readUserData().
Referenced by fetchUsers().
|
private |
Read user data.
bool | check dn |
bool | use group filter private |
Definition at line 336 of file class.ilLDAPQuery.php.
References $res, ilObjUser\_checkExternalAuthAccount(), IL_LDAP_SCOPE_BASE, parseAuthMode(), and queryByScope().
Referenced by fetchGroupMembers(), fetchUser(), and readAllUsers().
|
private |
Unbind.
private
Definition at line 590 of file class.ilLDAPQuery.php.
|
private |
Definition at line 43 of file class.ilLDAPQuery.php.
|
private |
Definition at line 45 of file class.ilLDAPQuery.php.
|
private |
Definition at line 44 of file class.ilLDAPQuery.php.
|
private |
Definition at line 47 of file class.ilLDAPQuery.php.