[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba
Subject:    Re: [Samba] samba-tool cannot add or remove group members
From:       Rowland Penny via samba <samba () lists ! samba ! org>
Date:       2017-05-30 11:18:26
Message-ID: 20170530121826.50078a7f () devstation ! samdom ! example ! com
[Download RAW message or body]

On Tue, 30 May 2017 13:09:38 +0200 (CEST)
Sébastien QUESSON via samba <samba@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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic