summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-07-07 18:58:18 +0300
committerMartin Kosek <mkosek@redhat.com>2011-07-13 12:02:46 +0200
commitb93e0b8bbfaa1e9252b3d096ef9251493654dec2 (patch)
treee261bcb0bfdccf12be4a152b55eb8ff341b9d542 /ipaserver
parentf534445e26ebfca38afe1c834ba088cbcbc24e37 (diff)
downloadfreeipa-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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py
index cf76d6222..77f5b289a 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: