Web lists-archives.com

Re: [Samba] Scripting the next UID/GID number to use




On Wed, 30 May 2018 10:03:19 +0200
Marco Gaiarin via samba <samba@xxxxxxxxxxxxxxx> wrote:

> Mandi! Andrew Bartlett via samba
>   In chel di` si favelave...
> 
> > > newid="dn:
> > > CN=$domainNETBios,CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,$domainDN
> > > changetype: modify replace: $1
> > > $1: $2"
> > 
> > Actually, you would want to use (something like this, not tested):
> > 
> > changetype: modify
> > add: $1
> > $1: $2
> > delete: $1
> > $1: $2
> > 
> > This is called a constrained update, and avoids a race where the
> > value changes between the search and the modify.
> 
> I'm a bit astonished.
> 
> So, in AD LDAP lingo, a 'modify' is not atomic, and a 'delete/add'
> yes?
> 
> Awake me, please... ;-)))
> 

Did you see my reply to what Andrew posted ?
I personally do not think that the above will actually work.

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba