[Samba] Unable to add a particular member to group (Samba 4.6.3)

Rowland Penny rpenny at samba.org
Wed Apr 26 16:44:37 UTC 2017


On Wed, 26 Apr 2017 11:47:03 -0400
Luc Lalonde via samba <samba at lists.samba.org> wrote:

> This is the case for this user too...   Could it be that Samba is
> trying to work with the old SID???
> 

It doesn't work with SID.

Are you up to trying something ?

If so, first find a Samba python file 'samdb.py' this is usually in
this directory path 'python2.x/site-packages/samba/'

Backup your original file, then open the original in an editor and find
this line:

ldb.binary_encode(member), ldb.binary_encode(member)), attrs=[])

In my copy it is line 271 under 'def add_remove_group_members(self,
groupname, members,'

Change it to:

member, member), attrs=[])

Make sure the characters start at the same place as they do now.

close and save the file.

Now, try again.

Rowland




More information about the samba mailing list