f16d2d6 Password policy checks fixes.

Authored and Committed by simo 16 years ago
    Password policy checks fixes.
    - don't let a user set a password identical to the current one.
    - don't check more then the policy defined number of passwords in history
    - don't set an history longer than policy defined