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

S├ębastien QUESSON s.quesson at alkante.com
Tue May 30 11:09:38 UTC 2017


> > > 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!



More information about the samba mailing list