tdbsam: RID/SID change issue + patch

Jeremy Allison jra at samba.org
Sun Mar 22 17:24:26 GMT 2009


On Wed, Mar 18, 2009 at 08:44:51PM +0300, Alexander Zagrebin wrote:
> I'm using samba 3.3.2
> I have found, that, when using tdbsam, pdbedit refuses to change account's
> rid/sid.
> 
> # pdbedit -U 3000 -u test
> Unable to modify TDB passwd: NT_STATUS_UNSUCCESSFUL!
> Unable to modify entry!
> 
> Suppose we have changed RID from <old_rid> to <new_rid>.
> When updating account information with changed RID, pdbedit tries to update
> key USER_<username> and
> key RID_<new_rid>. But passdb.tdb contains RID_<old_rid>, but not
> RID_<new_rid>.
> That's a source of above described error.
> So instead of updating RID_<new_rid> pdbedit have to delete RID_<old_rid>
> and add 
> RID_<new_rid>.
> 
> The attached patch resolves this issue.

I'm not ignoring this, I'll try and get to this early
next week.

Thanks,

Jeremy.


More information about the samba-technical mailing list