mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
Fix PEP8 warning E225 missing whitespace around operator
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Andrew Bartlett
parent
30e6e04c4c
commit
1a30a68b4a
@ -33,8 +33,8 @@ class TestUser:
|
||||
initial_password = "Initial12#"
|
||||
self.name = username
|
||||
self.ldb = samdb
|
||||
self.dn = "CN=%s,%s,%s" %(username, (userou or "CN=Users"),
|
||||
self.ldb.domain_dn())
|
||||
self.dn = "CN=%s,%s,%s" % (username, (userou or "CN=Users"),
|
||||
self.ldb.domain_dn())
|
||||
|
||||
# store all passwords that have ever been used for this user, as well
|
||||
# as a pwd_history that more closely resembles the history on the DC
|
||||
@ -154,9 +154,9 @@ class PasswordSettings:
|
||||
Returns a object representing the default password settings that will
|
||||
take effect (i.e. when no other Fine-Grained Password Policy applies)
|
||||
"""
|
||||
pw_attrs=["minPwdAge", "lockoutDuration", "lockOutObservationWindow",
|
||||
"lockoutThreshold", "maxPwdAge", "minPwdAge", "minPwdLength",
|
||||
"pwdHistoryLength", "pwdProperties"]
|
||||
pw_attrs = ["minPwdAge", "lockoutDuration", "lockOutObservationWindow",
|
||||
"lockoutThreshold", "maxPwdAge", "minPwdAge",
|
||||
"minPwdLength", "pwdHistoryLength", "pwdProperties"]
|
||||
res = samdb.search(samdb.domain_dn(), scope=ldb.SCOPE_BASE,
|
||||
attrs=pw_attrs)
|
||||
|
||||
@ -195,7 +195,7 @@ class PasswordSettings:
|
||||
container = "CN=Password Settings Container,CN=System,%s" % base_dn
|
||||
|
||||
self.name = name
|
||||
self.dn = "CN=%s,%s" %(name, container)
|
||||
self.dn = "CN=%s,%s" % (name, container)
|
||||
self.ldb = samdb
|
||||
self.precedence = precedence
|
||||
self.complexity = complexity
|
||||
|
Reference in New Issue
Block a user