summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-06 11:38:06 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-06 12:35:47 +0200
commit915b789c874e661dbd240e1fe3ba35f67746fdd0 (patch)
tree0f018bfd000da96a6b39476e49a0df8ca3b3b5de /source4
parent1ce36ed74745632baca9a55a00ab748c21367632 (diff)
downloadsamba-915b789c874e661dbd240e1fe3ba35f67746fdd0.tar.gz
samba-915b789c874e661dbd240e1fe3ba35f67746fdd0.tar.bz2
samba-915b789c874e661dbd240e1fe3ba35f67746fdd0.zip
s4: Simplify two lines in the "samdb.py" file (cosmetic)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/samdb.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index 6cb2469846..631f31c6aa 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -81,8 +81,7 @@ description: %s
"""
res = self.search(user_dn, ldb.SCOPE_BASE, None, ["userAccountControl"])
assert len(res) == 1
- userAccountControl = res[0]["userAccountControl"][0]
- userAccountControl = int(userAccountControl)
+ userAccountControl = int(res[0]["userAccountControl"][0])
if (userAccountControl & 0x2):
userAccountControl = userAccountControl & ~0x2 # remove disabled bit
if (userAccountControl & 0x20):