[Samba] Can't add groups or groupmaps with ldapsam

David Johnson dj at david-web.co.uk
Fri Aug 18 15:27:59 GMT 2006


Hi all,

I've got Samba working as a PDC with ldapsam and am unable to add groups or 
groupmaps, although I can add/manipulate users and machines without any 
problems.

With Samba 3.0.23b if I try to add a group with the command:
net rpc group add testgroup
it fails with:
add group failed: NT_STATUS_NO_SUCH_GROUP

The UNIX group is created in /etc/group but nothing is added to LDAP. I've 
tried both with and without the smbgrpadd.sh script but the result is the 
same.

I've posted the full debug output from the command here (I can't see anything 
in it that indicates what might be wrong):
http://www.david-web.co.uk/download/groupadd.log

When trying to add a groupmap with the command:
net groupmap add ntgroup="Domain Admins" unixgroup=ntadmin rid=512 type=domain
it fails with:
adding entry for group Domain Admins failed!

I've posted the full debug output from that command here (again, I can't see 
anything in it that indicates what might be wrong):
http://www.david-web.co.uk/download/groupmap.log

There is also some log output when I run the groupmap command, as it seems 
Samba can't create its BUILTIN groups:
http://www.david-web.co.uk/download/smbd.log

I'd really appreciate some suggestions as to what might be wrong or how I can 
further debug, as I'm totally lost.

Thanks in advance,
David.


More information about the samba mailing list