[Samba] Scripting the next UID/GID number to use
Rowland Penny
rpenny at samba.org
Wed May 30 08:13:19 UTC 2018
On Wed, 30 May 2018 10:03:19 +0200
Marco Gaiarin via samba <samba at lists.samba.org> 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
More information about the samba
mailing list