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>
"""Displays the password settings for a PSO specified by DN"""
# map from the boolean LDB value to the CLI string the user sees
- on_off_str = { "TRUE" : "on", "FALSE" : "off" }
+ on_off_str = {"TRUE": "on", "FALSE": "off"}
pso_attrs = ['name', 'msDS-PasswordSettingsPrecedence',
'msDS-PasswordReversibleEncryptionEnabled',
self.assertTrue(attr in res[0])
# check replace/delete operations can't be performed by regular users
- operations = [ FLAG_MOD_REPLACE, FLAG_MOD_DELETE ]
+ operations = [FLAG_MOD_REPLACE, FLAG_MOD_DELETE]
for oper in operations:
try: