| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
 Collaboration diagram for ilLDAPQuery:
 Collaboration diagram for ilLDAPQuery:| 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. | |
| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLDAPQuery::__destruct | ( | ) | 
Destructor unbind from ldap server.
private
Definition at line 589 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 489 of file class.ilLDAPQuery.php.
References $pass, $user, 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 443 of file class.ilLDAPQuery.php.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Fetch group member ids.
public
Definition at line 273 of file class.ilLDAPQuery.php.
References $data, $res, queryByScope(), and readUserData().
Referenced by fetchUsers().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
fetch required fields of user profile data
private
Definition at line 553 of file class.ilLDAPQuery.php.
References ilLDAPRoleAssignmentRules\getAttributeNames().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPQuery::fetchUsers | ( | ) | 
Fetch all users.
public
Definition at line 107 of file class.ilLDAPQuery.php.
References fetchGroupMembers(), and readAllUsers().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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.
| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Query by scope IL_SCOPE_SUB => ldap_search IL_SCOPE_ONE => ldap_list.
private
Definition at line 409 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().
 Here is the caller 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
public
Definition at line 202 of file class.ilLDAPQuery.php.
References $data, $res, queryByScope(), and readUserData().
Referenced by fetchUsers().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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, and queryByScope().
Referenced by fetchGroupMembers(), fetchUser(), and readAllUsers().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Unbind.
private
Definition at line 573 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.