dokeos-auth-ldap
[ class tree: dokeos-auth-ldap ] [ index: dokeos-auth-ldap ] [ all elements ]

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:

author:  Roan Embrechts
version:  3.0
filesource:  Source Code for this file


Includes:

require('ldap_var.inc.php') [line 79]
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:

author:  Roan Embrechts
version:  3.0
filesource:  Source Code for this file






ldap_add_user [line 571]

void ldap_add_user( string $login)

Adds a user to the Dokeos database or updates its data



Tags:

author:  Mustapha Alouani


Parameters

string   $login   username (and uid inside LDAP)
[ Top ]



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
[ Top ]



ldap_authentication_check [line 315]

void ldap_authentication_check( $uname, $passwd)



Parameters

   $uname  
   $passwd  
[ Top ]



ldap_find_user_info [line 131]

an ldap_find_user_info( $login)



Tags:

return:  array with positions "firstname", "name", "email", "employeenumber"
author:  Stefan De Wannemacker
author:  Roan Embrechts


Parameters

   $login  
[ Top ]



ldap_get_number_of_users [line 500]

void ldap_get_number_of_users( )

Get the total number of users on the platform



Tags:

author:  Mustapha Alouani
see:  get_total_number_of_items()


[ Top ]



ldap_get_users [line 441]

void ldap_get_users( )

Get the total number of users on the platform



Tags:

author:  Mustapha Alouani
see:  get_total_number_of_items()


[ Top ]



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:

author:  Mustapha Alouani
see:  get_table_data($from)


Parameters

   $from  
   $number_of_items  
   $column  
   $direction  
[ Top ]



ldap_handle_bind [line 406]

boolean ldap_handle_bind( resource &$ldap_handler, resource &$ldap_bind)

Handle bind (whether authenticated or not)



Tags:

return:  Status of the bind assignment. True for success, false for failure.


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
[ Top ]



ldap_login [line 91]

true ldap_login( $login, $password)



Tags:

return:  when login & password both OK, false otherwise
author:  Roan Embrechts (based on code from Universit� Jean Monet)


Parameters

   $login  
   $password  
[ Top ]



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:

author:  Roan Embrechts


Parameters

   $login  
   $info_array  
[ Top ]



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.
[ Top ]



modify_filter [line 558]

string modify_filter( int $user_id, string $url_params, $row)

Build the modify-column of the table



Tags:

return:  Some HTML-code with modify-buttons
author:  Mustapha Alouani


Parameters

int   $user_id   The user id
string   $url_params  
   $row  
[ Top ]



Documentation generated on Thu, 12 Jun 2008 12:59:28 -0500 by phpDocumentor 1.4.1