Namespaces | Functions

cms/authenticate.lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  pragyan
 

Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom.


Functions

 getSessionData ($user_id)
 setAuth ($user_id)
 checkCookieSupport ()
 showCookieWarning ()
 getUserId ()
 firstTimeGetUserId ()
 getGroupIds ($userId)
 resetAuth ()
 checkLogin ($login_method, $user_name, $user_email, $user_passwd)
 quoteIMAP ($str)
 my_imap_auth ($username, $password)
 my_ldap_auth ($uid, $passwd)
 get_dn ($uid, $ds)
 search_user ($uid, $ds)
 my_ads_auth ($username, $password)

Function Documentation

checkCookieSupport (  ) 

Check if the browser offers support for the server to set cookie.

Returns:
true is the server is able to set a cookie and false otherwise.

Definition at line 65 of file authenticate.lib.php.

checkLogin ( login_method,
user_name,
user_email,
user_passwd 
)

this prevents any OpenID dummy users (those which have login_method=openid) to use conventional login method

Definition at line 161 of file authenticate.lib.php.

firstTimeGetUserId (  ) 

Checks if cookie is authentic if yes, updates it. ---> not required now after sessions. (session vars don't expire like individual cookies) if no, resets it. If not logged in, user id = 0

Definition at line 100 of file authenticate.lib.php.

get_dn ( uid,
ds 
)

Definition at line 253 of file authenticate.lib.php.

getGroupIds ( userId  ) 

To get the groups a user belongs to If not logged in, group id = 0 If logged in, one definite group id = 1

Definition at line 131 of file authenticate.lib.php.

getSessionData ( user_id  ) 

Returns the encrypted session data of the user

Parameters:
$user_id The user whose session data is required
Returns:
The required session data, but in an encrypted form.

Definition at line 26 of file authenticate.lib.php.

getUserId (  ) 

Definition at line 90 of file authenticate.lib.php.

my_ads_auth ( username,
password 
)

FUNCTION FOR ADS AUTH:

Definition at line 270 of file authenticate.lib.php.

my_imap_auth ( username,
password 
)

Definition at line 205 of file authenticate.lib.php.

my_ldap_auth ( uid,
passwd 
)

FUNCTIONS FOR LDAP AUTH:

Definition at line 237 of file authenticate.lib.php.

quoteIMAP ( str  ) 

Definition at line 200 of file authenticate.lib.php.

resetAuth (  ) 

Resets cookie info

Definition at line 147 of file authenticate.lib.php.

search_user ( uid,
ds 
)

Definition at line 261 of file authenticate.lib.php.

setAuth ( user_id  ) 

Sets the cookie and overwrites browser's cache of login information

Parameters:
$user_id The user whose session is being set.
Returns:
$user_id

Definition at line 49 of file authenticate.lib.php.

showCookieWarning (  ) 

Display warning and help regarding cookies as cookie is required for the proper working of the site.

Returns:
true if displayis successful and false otherwise.

Definition at line 79 of file authenticate.lib.php.