In our environment, all of our deployments are automated, and we at present have no way of distinguishing one node from another.
We will probably find a way to do this, but it won't be completely failsafe.
I ask this to see that we can have just one server run the LDAP sync.
Testing in 1.4.2, we see that nodes will run the LDAP sync simultaneously; there is no database lock to prevent others from running. This doesn't seem to be a bad thing, but we do want to avoid having these run in parallel.
One possible solution – suppose each node were to register on startup with its url (host/port/context) in the database… a function could then check whether the node we're running on is the "first" one (either by registration timestamp, or other calculation) – and then only this node will run this.
Is this possible today?