28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Solution<br />

Set all plain-text passwords to be from 8 to 20 characters long and to contain at least<br />

two case changes:<br />

[edit system login]<br />

aviva@router1# set password maximum-length 20<br />

aviva@router1# set password minimum-length 8<br />

aviva@router1# set password minimum-changes 2<br />

<strong>Discussion</strong><br />

By default, plain-text passwords must be at least six characters long and must contain<br />

one change from either letters to numbers (or vice versa) or from lowercase to<br />

uppercase (or vice versa). You can harden the router’s security even more by increasing<br />

the minimum password length and the minimum number of case and letter-tonumber<br />

changes.<br />

The commands in this recipe require that all plain-text passwords be from 8 to 20<br />

characters long and contain at least 2 case changes. The changes take effect when<br />

you next configure a plain-text password for a user:<br />

[edit system login]<br />

aviva@router1# set user sage authentication plain-text-password<br />

New password:T91912<br />

error: minimum password length is 8<br />

error: require 2 changes of case, digits or punctuation<br />

This password is not acceptable because it is shorter than eight characters and has<br />

only one change from a letter to a number. An example of a valid password with<br />

these conditions is $1991poppI.<br />

When you change the requirements for plain-text passwords, the new parameters<br />

affect only newly created passwords, so already existing passwords may not be as<br />

secure as your new password policy.<br />

See Also<br />

Recipe 2.5<br />

2.7 Changing the Plain-Text Password Encryption<br />

Method<br />

Problem<br />

When setting up passwords for login accounts on the router, if you assigned plaintext<br />

passwords, the default encryption is SHA1. You want to change this to either<br />

DES or MD5.<br />

Changing the Plain-Text Password Encryption Method | 85<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!