Procedural File: authldap.php
Source Location: /main/auth/ldap/authldap.php
Page Details:
LDAP module functions
If the application uses LDAP, these functions are used for logging in, searching user info, adding this info to the Dokeos database...
Tags:
Includes:
ldap_add_user [line 571]
void ldap_add_user(
string $login)
|
|
Adds a user to the Dokeos database or updates its data
Tags:
Parameters
| string |
$login |
username (and uid inside LDAP) |
ldap_add_user_to_session [line 642]
void ldap_add_user_to_session(
array $UserList, string $id_session)
|
|
Adds a list of users to one session
Parameters
| array |
$UserList |
Array of user ids |
| string |
$id_session |
Course code |
ldap_authentication_check [line 315]
void ldap_authentication_check(
$uname, $passwd)
|
|
Parameters
ldap_find_user_info [line 131]
an ldap_find_user_info(
$login)
|
|
Tags:
Parameters
ldap_get_number_of_users [line 500]
void ldap_get_number_of_users(
)
|
|
Get the total number of users on the platform
Tags:
ldap_get_users [line 441]
Get the total number of users on the platform
Tags:
ldap_get_user_data [line 516]
void ldap_get_user_data(
$from, $number_of_items, $column, $direction)
|
|
Get the users to display on the current page.
Tags:
Parameters
| |
$from |
|
| |
$number_of_items |
|
| |
$column |
|
| |
$direction |
|
ldap_handle_bind [line 406]
boolean ldap_handle_bind(
resource &$ldap_handler, resource &$ldap_bind)
|
|
Handle bind (whether authenticated or not)
Tags:
Parameters
| resource |
&$ldap_handler |
The LDAP handler to which we are connecting (by reference) |
| resource |
&$ldap_bind |
The LDAP bind handler we will be modifying |
ldap_login [line 91]
true ldap_login(
$login, $password)
|
|
Tags:
Parameters
ldap_put_user_info_locally [line 201]
void ldap_put_user_info_locally(
$login, $info_array)
|
|
This function uses the data from ldap_find_user_info() to add the userdata to Dokeos "firstname", "name", "email", "isEmployee"
Tags:
Parameters
ldap_set_version [line 384]
void ldap_set_version(
resource &$resource)
|
|
Set the protocol version with version from config file (enables LDAP version 3)
Parameters
| resource |
&$resource |
The LDAP connexion resource, passed by reference. |
modify_filter [line 558]
string modify_filter(
int $user_id, string $url_params, $row)
|
|
Build the modify-column of the table
Tags:
Parameters
| int |
$user_id |
The user id |
| string |
$url_params |
|
| |
$row |
|
|