Horde_AuthThe Horde_Auth class provides some useful authentication-related utilities and constants for the Auth package.
Copyright 1999-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, http://www.horde.org/licenses/lgpl21
Located in /Auth.php (line 17)
static string
getCryptedPassword
(string $plaintext, [string $salt = ''], [string $encryption = 'md5-hex'], [boolean $show_encrypt = false])
static string
getSalt
([string $encryption = 'md5-hex'], [string $seed = ''], [string $plaintext = ''])
static checkPasswordPolicy (line 346)
Checks whether a password matches some expected policy.
A configuration with policy rules. Supported rules:
static checkPasswordSimilarity (line 418)
Checks whether a password is too similar to a dictionary of strings.
static factory (line 64)
Attempts to return a concrete Horde_Auth_Base instance based on $driver.
static genRandomPassword (line 295)
Generates a random, hopefully pronounceable, password. This can be used when resetting automatically a user's password.
static getCryptedPassword (line 96)
Formats a password using the current encryption.
static getSalt (line 204)
Returns a salt for the appropriate kind of password encryption.
Optionally takes a seed and a plaintext password, to extract the seed of an existing password, or for encryption types that use the plaintext in the generation of the salt.
static _toAPRMD5 (line 275)
Converts to allowed 64 characters for APRMD5 passwords.
APRMD5_VALID
= './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
(line 43)
64 characters that are valid for APRMD5 passwords.
CONSONANTS
= 'bcdfghjklmnpqrstvwxz'
(line 49)
NUMBERS
= '0123456789'
(line 50)
REASON_BADLOGIN
= 1
(line 32)
Authentication failure reasons.
REASON_BADLOGIN - Bad username and/or password REASON_FAILED - Login failed REASON_EXPIRED - Password has expired REASON_LOGOUT - Logout due to user request REASON_MESSAGE - Logout with custom message REASON_SESSION - Logout due to session expiration REASON_LOCKED - User is locked
REASON_EXPIRED
= 3
(line 34)
REASON_FAILED
= 2
(line 33)
REASON_LOCKED
= 7
(line 38)
REASON_LOGOUT
= 4
(line 35)
REASON_MESSAGE
= 5
(line 36)
REASON_SESSION
= 6
(line 37)
VOWELS
= 'aeiouy'
(line 48)
Characters used when generating a password.
Documentation generated on Sun, 13 May 2012 03:04:10 +0000 by phpDocumentor 1.4.3