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) |
checkCookieSupport | ( | ) |
Definition at line 42 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 128 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 70 of file authenticate.lib.php.
get_dn | ( | $ | uid, | |
$ | ds | |||
) |
Definition at line 220 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 98 of file authenticate.lib.php.
getSessionData | ( | $ | user_id | ) |
Definition at line 18 of file authenticate.lib.php.
getUserId | ( | ) |
Definition at line 60 of file authenticate.lib.php.
my_ads_auth | ( | $ | username, | |
$ | password | |||
) |
FUNCTION FOR ADS AUTH:
Definition at line 237 of file authenticate.lib.php.
my_imap_auth | ( | $ | username, | |
$ | password | |||
) |
Definition at line 172 of file authenticate.lib.php.
my_ldap_auth | ( | $ | uid, | |
$ | passwd | |||
) |
FUNCTIONS FOR LDAP AUTH:
Definition at line 204 of file authenticate.lib.php.
quoteIMAP | ( | $ | str | ) |
Definition at line 167 of file authenticate.lib.php.
resetAuth | ( | ) |
Resets cookie info
Definition at line 114 of file authenticate.lib.php.
search_user | ( | $ | uid, | |
$ | ds | |||
) |
Definition at line 228 of file authenticate.lib.php.
setAuth | ( | $ | user_id | ) |
Sets the cookie and overwrites browser's cache of login information
Definition at line 33 of file authenticate.lib.php.
showCookieWarning | ( | ) |
Definition at line 49 of file authenticate.lib.php.