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:
parent
8c28f2f12b
commit
86bed21950
@ -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
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user