Re: Further work on LDAP passwords (working on an ldap-adduser).
On 14 Jun 1999, Rob Browning wrote:
> Jason Gunthorpe <jgg@ualberta.ca> writes:
>
> > You don't really need this, just a simple detect/backoff algorithm will do
> > OK for determining the UIDs
>
> Could you elaborate? If you have at least two machines, I can't see
> how you don't have to have a shared locking mechanism to make sure
> they don't both try to add the same user to the ldap database with
> different uid's, or are there some ldap semantics that allow you to
> avoid the race condition.
You use the same technique as ethernet basically, both add and check if
their was only one added (using a search on the ID they added) then
remove and retry a new id after a delay.
> (Oh, and I guess you didn't have any idea why my script was failing
> with authentication problems?)
Nope, I do my scripts in Python
Jason
Reply to: