Ask samba-tool to show an existing group: root@dc4:~# samba-tool group show grouptest4 ERROR: Unable to find group "grouptest4" Edit /usr/lib/python3/dist-packages/samba/netcmd/group.py Change filter = ("(&(sAMAccountType=%d)(sAMAccountName=%s))" % (ATYPE_SECURITY_GLOBAL_GROUP, ldb.binary_encode(groupname))) To: filter = ("(&(objectCategory=group)(sAMAccountName=%s))" % ldb.binary_encode(groupname)) Now ask for the group again: root@dc4:~# samba-tool group show grouptest4 dn: CN=grouptest4,CN=Users,DC=samdom,DC=example,DC=com objectClass: top objectClass: group cn: grouptest4 instanceType: 4 whenCreated: 20190403090537.0Z whenChanged: 20190403090537.0Z uSNCreated: 472146 uSNChanged: 472146 name: grouptest4 objectGUID: 53c65522-b0eb-4e20-baaf-383ef21e6a09 objectSid: S-1-5-21-1768301897-3342589593-1064908849-5150 sAMAccountName: grouptest4 sAMAccountType: 536870913 groupType: 4 objectCategory: CN=Group,CN=Schema,CN=Configuration,DC=samdom,DC=example,DC=co m distinguishedName: CN=grouptest4,CN=Users,DC=samdom,DC=example,DC=com I will prepare a patch. This was found by a user, see here: https://lists.samba.org/archive/samba/2020-March/229069.html
Created attachment 15888 [details] Patch to fix bugreport Patch to fix bug attached.
Closing bug report, now in master.