From 1b3de4cd13abdc6ed22273682827b38ccf8033bb Mon Sep 17 00:00:00 2001 From: Rowland Penny Date: Thu, 2 Apr 2020 09:29:18 +0100 Subject: [PATCH] Subject: [PATCH] samba-tool group show: only shows global security groups, this patch makes it show all groups. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14335 Signed-off-by: Rowland Penny --- python/samba/netcmd/group.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/samba/netcmd/group.py b/python/samba/netcmd/group.py index 76705100960..d973c750b86 100644 --- a/python/samba/netcmd/group.py +++ b/python/samba/netcmd/group.py @@ -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() -- 2.20.1