Fix to undo nasty hack for for grouptype conversion
authorLukasz Zalewski <lukas@eecs.qmul.ac.uk>
Wed, 23 Jun 2010 09:05:50 +0000 (10:05 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 23 Jun 2010 12:49:02 +0000 (14:49 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/scripting/python/samba/samdb.py

index 6d49bddfb3a9571900aa04a08d526a1653c25f8e..ef31d28a8febbdf411a84ec8c9f187daf74e44eb 100644 (file)
@@ -130,7 +130,7 @@ pwdLastSet: 0
             "objectClass": "group"}
 
         if grouptype is not None:
-            ldbmessage["groupType"] = "%d" % ((grouptype)-2**32)
+            ldbmessage["groupType"] = "%d" % grouptype
 
         if description is not None:
             ldbmessage["description"] = description