]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool group show: only shows global security groups, this patch makes it show...
authorRowland Penny <rpenny@samba.org>
Thu, 2 Apr 2020 08:29:18 +0000 (09:29 +0100)
committerBjörn Baumbach <bb@sernet.de>
Thu, 2 Apr 2020 15:27:53 +0000 (15:27 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14335

Signed-off-by: Rowland Penny <rpenny@samba.org>
Reviewed-by: Björn Baumbach <bb@samba.org>
Autobuild-User(master): Björn Baumbach <bb@sernet.de>
Autobuild-Date(master): Thu Apr  2 15:27:53 UTC 2020 on sn-devel-184

python/samba/netcmd/group.py

index 7670510096044d5c0588646688b91266c69728f6..d973c750b8622af5289fe681b26424142daaf680 100644 (file)
@@ -696,9 +696,8 @@ Example3 shows how to display a groups objectGUID and member attributes.
         if group_attrs:
             attrs = group_attrs.split(",")
 
-        filter = ("(&(sAMAccountType=%d)(sAMAccountName=%s))" %
-                  (ATYPE_SECURITY_GLOBAL_GROUP,
-                   ldb.binary_encode(groupname)))
+        filter = ("(&(objectCategory=group)(sAMAccountName=%s))" %
+                   ldb.binary_encode(groupname))
 
         domaindn = samdb.domain_dn()