diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2011-07-07 18:58:18 +0300 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-07-13 12:02:46 +0200 |
commit | b93e0b8bbfaa1e9252b3d096ef9251493654dec2 (patch) | |
tree | e261bcb0bfdccf12be4a152b55eb8ff341b9d542 /ipaserver | |
parent | f534445e26ebfca38afe1c834ba088cbcbc24e37 (diff) | |
download | freeipa-b93e0b8bbfaa1e9252b3d096ef9251493654dec2.tar.gz freeipa-b93e0b8bbfaa1e9252b3d096ef9251493654dec2.tar.xz freeipa-b93e0b8bbfaa1e9252b3d096ef9251493654dec2.zip |
Convert nsaccountlock to always work as bool towards Python code
https://fedorahosted.org/freeipa/ticket/1259
Python code will see nsaccountlock as bool. JavaScript code will also see it as bool.
This allows native boolean operations with the lock field. Passes both CLI and WebUI tests.
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/ipaldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py index cf76d622..77f5b289 100644 --- a/ipaserver/ipaldap.py +++ b/ipaserver/ipaldap.py @@ -567,7 +567,7 @@ class IPAdmin(SimpleLDAPObject): else: operation = ldap.MOD_ADD - modlist.append((operation, "nsAccountlock", "true")) + modlist.append((operation, "nsAccountlock", "TRUE")) try: if sctrl is not None: |