patch for user rename with tdbsam

Simo Sorce idra at samba.org
Mon Oct 10 20:22:25 GMT 2005


On Mon, 2005-10-10 at 14:18 -0600, Jim McDonough wrote:
> >+               if (!oldname->methods){
> >+                               pdb_selected = context->pdb_methods;
> >+                               /* There's no passdb backend specified 
> for this account.
> >+                                * Try to delete it in every passdb 
> available 
> >+                                * Needed to delete accounts in smbpasswd 
> that are not
> >+                                * in /etc/passwd.
> >+                                */
> >
> >Is that really necessary? I'd say screw those situations.
> Probably not...
> 
> >In particular with tdbsam, this *cries* for tridge's new tdb transaction
> >code. I'd say this is a real reason to import it.
> >
> >Start a transaction, do all the tdb stuff, try the posix script, and roll 
> back
> >if that fails.
> Guess I should pay more attention to the samba4 commits :-/, as this is 
> exactly what I was thinking would be useful here.
> 
> Have you looked at it?  Just wondering how much work it would be.

little work really, I can help you out if you need.

Simo.

-- 
Simo Sorce    -  idra at samba.org
Samba Team    -  http://www.samba.org
Italian Site  -  http://samba.xsec.it



More information about the samba-technical mailing list