[Samba] Problem adding user to (16-char) group

Marcel Ritter marcel at linux-ng.de
Tue Jun 10 05:52:14 UTC 2025


Hi,

yesterday I tried to add a new group and its users to my Samba domain controller (Samba 4.22.2).
I used samba-tool to add them.

However when trying to add a user to my "Netbox Superuser" group all I got was:

ERROR: Failed to add members ['marcel'] to group "Netbox Superuser" - (32, "Base-DN '<GUID=34333231-3635-3837-3930-313233343536>' not found")

Using other group names worked however.
So I experimented a little more using the following script:

--- test.sh ---
#!/bin/bash

GROUP="$1"

samba-tool group add "$GROUP"
samba-tool group addmembers "$GROUP" existing_user
samba-tool group delete "$GROUP"
--- test.sh ---

The error seems to occur only with 16-char group names:

## 15 char: OK
# ./test.sh "12345678901234567"
Added group 12345678901234567
Added members to group 12345678901234567
Deleted group 12345678901234567

## 16 char: Failed
# ./test.sh "1234567890123456"
Added group 1234567890123456
ERROR: Failed to add members ['marcel'] to group "1234567890123456" - (32, "Base-DN '<GUID=34333231-3635-3837-3930-313233343536>' not found")
Deleted group 1234567890123456

## 17 char: OK
# ./test.sh "123456789012345"
Added group 123456789012345
Added members to group 123456789012345
Deleted group 123456789012345

Any idea why that happens?

Regards,
  Marcel



More information about the samba mailing list