Increase the password limit

Previously it was using 14, for some compatibility with Windows NT.
We don't support Windows NT and the oldest version that we are supporting,
Windows 2003, supports passwords much larger than 14 characters.

Change-Id: Ifebb2ef8cee7eea76de4853bfd7399be97a95be3
This commit is contained in:
Claudiu Popa 2015-03-02 22:21:33 +02:00
parent 8c28f2f12b
commit 86bed21950
2 changed files with 2 additions and 3 deletions

View File

@ -994,5 +994,4 @@ class WindowsUtils(base.BaseOSUtils):
decode_output=decode_output, shell=shell)
def get_maximum_password_length(self):
# TODO(cpopa): Limit to 14 chars for compatibility with NT?
return 14
return 20

View File

@ -1359,4 +1359,4 @@ class TestWindowsUtils(unittest.TestCase):
self.assertEqual(mock.sentinel.execute_process, result)
def test_get_password_maximum_length(self):
self.assertEqual(14, self._winutils.get_maximum_password_length())
self.assertEqual(20, self._winutils.get_maximum_password_length())