From b93e0b8bbfaa1e9252b3d096ef9251493654dec2 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 7 Jul 2011 18:58:18 +0300 Subject: 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. --- ipaserver/ipaldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver') 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: -- cgit