auth.php
Contains functions used to do authentication.
Dependencies: functions/global.php functions/strings.php.
Given the challenge from the server, supply the response using cram-md5 (See RFC 2195 for details)
Parse Digest-MD5 challenge.
This function parses the challenge sent during DIGEST-MD5 authentication and returns an array. See the RFC for details on what's in the challenge string.
Return Digest-MD5 response.
Given the challenge from the server, calculate and return the response-string for digest-md5 authentication. (See RFC 2831 for more details)
Fillin user and password based on SMTP auth settings.
Creates a HMAC digest that can be used for auth purposes See RFCs 2104, 2617, 2831 Uses mhash() extension if available
Detect whether user is logged in
Function is similar to is_logged_in() function. If user is logged in, function returns true. If user is not logged in or session is expired, function saves $_POST and $PHP_SELF in session and returns false. POST information is saved in 'session_expired_post' variable, PHP_SELF is saved in 'session_expired_location'.
Script that uses this function instead of is_logged_in() function, must handle user level messages.
Reads and decodes stored user password information
Direct access to password information is deprecated.
Saves or updates user password information
This function is used to update password information that SquirrelMail stores during existing web session. It does not modify password stored in authentication system used by IMAP server.
Function must be called before any html output started. Direct access to password information is deprecated. Saved password information is available only to next executed SquirrelMail script. If your script needs access to saved password after sqauth_save_password() call, use returned OTP encrypted key.
Documentation generated on Sat, 07 Oct 2006 16:08:56 +0300 by phpDocumentor 1.3.0RC6