[Samba] samba-tool cannot add or remove group members

Rowland Penny rpenny at samba.org
Tue May 30 11:18:26 UTC 2017


On Tue, 30 May 2017 13:09:38 +0200 (CEST)
Sébastien QUESSON via samba <samba at lists.samba.org> wrote:

> > > > All I can think of is, you have a user with
> > > > 'sAMAccountName=username' and another with 'CN=username', this
> > > > could lead to 'len(targetmember)' being 2
> 
> yeah, that's the point
> I created my users with : samba-tool user add user password
> --use-username-as-cn
> 
> > OK, I think I have a fix, find 'samdb.py' on your DC, open it in
> > your favourite editor and find this line:
> > You should then be able to add your user to the group:
> 
> samba-tool group addmembers is OK now!
> do I have to maintain manually this file, or will it be ported in
> next samba versions? thank you very much for your great support,
> Rowland!
> 


I will prepare a patch and submit it and see what the rest of the devs
think.

Rowland



More information about the samba mailing list