1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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 <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
This commit is contained in:
Rowland Penny 2020-04-02 09:29:18 +01:00 committed by Björn Baumbach
parent 130c26b43f
commit 84c130a655

View File

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