Re: password complexity squirrelmail change password plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Rajesh M-3 wrote:
> 
> hi
> 
> for those who wish to ensure password complexity in squirrelmail.
> 
> pl edit options.php file which is within the plugin change_pass folder
> 
> it works in my system, but pl check from your side before using the same
> 
> i am not a programmer but i implemented this with a bit of googling and
> some searching here and there
> 
> 
> #####################
> 
>     if ($cp_oldpass == '') {
>         $messages[] = _("PASSWORD NOT CHANGED. You must type in your old
> password.");
>     }
>     if ($cp_newpass == '') {
>         $messages[] = _("PASSWORD NOT CHANGED. You must type in a new
> password.");
>     }
>     if ($cp_verify  == '') {
>         $messages[] = _("PASSWORD NOT CHANGED. You must also type in your
> new
> password in the verify box.");
>     }
>     if ($cp_newpass != '' && ($cp_verify != $cp_newpass)) {
>         $messages[] = _("PASSWORD NOT CHANGED. New Password doesn't match
> the Verify New Password.");
>     }
> 
> 
>     if (strlen ($cp_newpass ) < 8 ) {
>         $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast 8
> characters.");
>     }
> 
>     if (strlen ($cp_newpass ) > 15 ) {
>         $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> less than 15
> characters.");
>     }
> 
> 
> if (strcspn($cp_newpass , '0123456789') == strlen($cp_newpass)  ) {
>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast one number.");
>     }
> 
> 
> if (strcspn($cp_newpass , 'abcdefghijklmnopqrstuvwxyz') ==
> strlen($cp_newpass)  ) {
>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast one
> small (lower-case) alphabet.");
>     }
> 
> if (strcspn($cp_newpass , 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') ==
> strlen($cp_newpass)  ) {
>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast one
> capital (upper-case) alphabet.");
>     }
> 
> 
>     if ($cp_oldpass != '' && ($cp_oldpass != $password)) {
>         $messages[] = _("PASSWORD NOT CHANGED. Your old password is not
> correct.");
>     }
> 
>     if ($cp_newpass != '' && ($cp_newpass == $password)) {
>         $messages[] = _("PASSWORD NOT CHANGED. Your new password is same
> as old password.");
>     }
> 
Are you sure that you can't set these restrictions in poppassd?

-- 
Tomas
-- 
View this message in context: http://old.nabble.com/password-complexity-squirrelmail-change-password-plugin-tp27488891p27492347.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux