From 84c130a65557a43972e11f8fe26cfd19305c6328 Mon Sep 17 00:00:00 2001 From: Rowland Penny Date: Thu, 2 Apr 2020 09:29:18 +0100 Subject: [PATCH] samba-tool group show: only shows global security groups, this patch makes it show all groups. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG: https://bugzilla.samba.org/show_bug.cgi?id=14335 Signed-off-by: Rowland Penny Reviewed-by: Björn Baumbach Autobuild-User(master): Björn Baumbach Autobuild-Date(master): Thu Apr 2 15:27:53 UTC 2020 on sn-devel-184 --- 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()