FusionDirectory
 All Data Structures Files Functions Variables
Public Member Functions | Static Public Member Functions
passwordMethod Class Reference

This class contains all the basic function for password methods. More...

Inheritance diagram for passwordMethod:
Inheritance graph
[legend]

Public Member Functions

 __construct ($dn= '', $userTab=NULL)
 Password method contructor. More...
 
 need_password ()
 If we need password. More...
 
 is_locked ($dn="")
 Is locked. More...
 
 lock_account ($dn="")
 Locks an account by adding a '!' as prefix to the password hashes. This makes login impossible, due to the fact that the hash becomes invalid. userPassword: {SHA}!q02NKl9IChNwZEAJxzRdmB6E sambaLMPassword: !EBD223B61F8C259AD3B435B51404EE sambaNTPassword: !98BB35737013AAF181D0FE9FDA09E. More...
 
 unlock_account ($dn="")
 Unlocks an account which was locked by 'lock_account()'. For details about the locking mechanism see 'lock_account()'.
 
 get_description ()
 Get desciption.
 
 remove_from_parent ()
 Method to let password backends remove additional information besides the userPassword attribute.
 
 checkPassword ($pwd, $hash)
 Method to check if a password matches a hash.
 
 is_configurable ()
 Return true if this password method provides a configuration dialog.
 
 configure ()
 Provide a subdialog to configure a password method.
 
 save ($dn)
 Save information to LDAP. More...
 
 set_hash ($hash)
 Set a hash. More...
 
 get_hash ()
 Get a hash.
 

Static Public Member Functions

static get_hash_name ()
 Get the Hash name.
 
static get_available_methods ()
 This function returns all loaded classes for password encryption.
 
static get_method ($password_hash, $dn="")
 Try to find out if it's our hash... More...
 
static _extract_method ($classname, $password_hash)
 Extract a method. More...
 
static make_hash ($password, $hash)
 Make a hash. More...
 
static is_harmless ($password)
 Test for problematic unicode caracters in password This can be activated with the keyword strictPasswordRules in the fusiondirectory.conf. More...
 

Detailed Description

This class contains all the basic function for password methods.

Definition at line 30 of file class_password-methods.inc.

Constructor & Destructor Documentation

__construct (   $dn = '',
  $userTab = NULL 
)

Password method contructor.

Parameters
string$dnThe DN
object$userTabThe user main tab object

Definition at line 43 of file class_password-methods.inc.

Member Function Documentation

static _extract_method (   $classname,
  $password_hash 
)
static

Extract a method.

Parameters
string$password_hash

Definition at line 324 of file class_password-methods.inc.

static get_method (   $password_hash,
  $dn = "" 
)
static

Try to find out if it's our hash...

Parameters
string$password_hash
string$dnThe DN

Definition at line 301 of file class_password-methods.inc.

References get_available_methods().

static is_harmless (   $password)
static

Test for problematic unicode caracters in password This can be activated with the keyword strictPasswordRules in the fusiondirectory.conf.

Parameters
string$passwordThe password

Definition at line 375 of file class_password-methods.inc.

is_locked (   $dn = "")

Is locked.

Parameters
string$dnThe DN

Definition at line 70 of file class_password-methods.inc.

lock_account (   $dn = "")

Locks an account by adding a '!' as prefix to the password hashes. This makes login impossible, due to the fact that the hash becomes invalid. userPassword: {SHA}!q02NKl9IChNwZEAJxzRdmB6E sambaLMPassword: !EBD223B61F8C259AD3B435B51404EE sambaNTPassword: !98BB35737013AAF181D0FE9FDA09E.

Parameters
string$dn

Definition at line 101 of file class_password-methods.inc.

static make_hash (   $password,
  $hash 
)
static

Make a hash.

Parameters
string$passwordThe password
string$hash

Definition at line 341 of file class_password-methods.inc.

References get_available_methods().

need_password ( )

If we need password.

Returns
boolean TRUE

Definition at line 60 of file class_password-methods.inc.

save (   $dn)

Save information to LDAP.

Parameters
string$dnThe DN

Definition at line 289 of file class_password-methods.inc.

set_hash (   $hash)

Set a hash.

Parameters
string$hash

Definition at line 354 of file class_password-methods.inc.


The documentation for this class was generated from the following file: