Web lists-archives.com

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




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... ;-)))

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)

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