mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
python tests: fix format() strings for Python 2.6
Python 2.6 wants "{0}".format(x), not "{}".format(x). Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
3b94d31d24
commit
198bcfbac3
@ -228,18 +228,18 @@ class PasswordSettings:
|
||||
|
||||
# all the following fields are mandatory for the PSO object
|
||||
ldif = """
|
||||
dn: {}
|
||||
dn: {0}
|
||||
objectClass: msDS-PasswordSettings
|
||||
msDS-PasswordSettingsPrecedence: {}
|
||||
msDS-PasswordReversibleEncryptionEnabled: {}
|
||||
msDS-PasswordHistoryLength: {}
|
||||
msDS-PasswordComplexityEnabled: {}
|
||||
msDS-MinimumPasswordLength: {}
|
||||
msDS-MinimumPasswordAge: {}
|
||||
msDS-MaximumPasswordAge: {}
|
||||
msDS-LockoutThreshold: {}
|
||||
msDS-LockoutObservationWindow: {}
|
||||
msDS-LockoutDuration: {}
|
||||
msDS-PasswordSettingsPrecedence: {1}
|
||||
msDS-PasswordReversibleEncryptionEnabled: {2}
|
||||
msDS-PasswordHistoryLength: {3}
|
||||
msDS-PasswordComplexityEnabled: {4}
|
||||
msDS-MinimumPasswordLength: {5}
|
||||
msDS-MinimumPasswordAge: {6}
|
||||
msDS-MaximumPasswordAge: {7}
|
||||
msDS-LockoutThreshold: {8}
|
||||
msDS-LockoutObservationWindow: {9}
|
||||
msDS-LockoutDuration: {10}
|
||||
""".format(self.dn, self.precedence, plaintext_str, self.history_len,
|
||||
complexity_str, self.password_len, min_age, max_age,
|
||||
self.lockout_attempts, lockout_window, lockout_duration)
|
||||
|
Reference in New Issue
Block a user