From: Rowland Penny Date: Thu, 2 Apr 2020 08:29:18 +0000 (+0100) Subject: samba-tool group show: only shows global security groups, this patch makes it show... X-Git-Tag: ldb-2.2.0~1126 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84c130a65557a43972e11f8fe26cfd19305c6328;p=thirdparty%2Fsamba.git 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 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 --- 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()