Hi,
I'd like to use SyncReplication on some Notebooks with local ldap servers to be updated whenever they connect to the Home LAN.
Unfortunately, the syncrepl directive uses a fixed time interval.
I would need a way to run the replication on request and only on request, i.e.
- run when the notebook is connected to the home lan, whatever time
- do not run when the notebook is not connected to the home lan
The best way would be to run replication only when triggered through an external command.
Any way to achieve that?
regards Hadmut
Hadmut Danisch wrote:
Hi,
I'd like to use SyncReplication on some Notebooks with local ldap servers to be updated whenever they connect to the Home LAN.
Unfortunately, the syncrepl directive uses a fixed time interval.
I would need a way to run the replication on request and only on request, i.e.
run when the notebook is connected to the home lan, whatever time
do not run when the notebook is not connected to the home lan
The best way would be to run replication only when triggered through an external command.
Any way to achieve that?
Hm, I can't think of anything that will allow this in the current code. But it sounds like a good idea, you should file an enhancement request in the ITS.
One way to do this right now would be to setup a 2nd slapd that uses back-ldap to talk to the local replica, and uses syncrepl to talk to the master. Then your "external command" should simply start this 2nd slapd when the LAN is available, and kill it when the LAN is disconnected.
On Fri, 13 Apr 2007, Howard Chu wrote:
I'd like to use SyncReplication on some Notebooks with local ldap servers to be updated whenever they connect to the Home LAN. [...]
Hm, I can't think of anything that will allow this in the current code. But it sounds like a good idea, you should file an enhancement request in the ITS.
I'd be most interested in this too, especially if it can be extended to 2.4's multi-mastering (update the laptop in the field, and sync it with the server when I get home etc).
On Friday 13 April 2007, Hadmut Danisch wrote:
Hi,
I'd like to use SyncReplication on some Notebooks with local ldap servers to be updated whenever they connect to the Home LAN.
Unfortunately, the syncrepl directive uses a fixed time interval.
I would need a way to run the replication on request and only on request, i.e.
run when the notebook is connected to the home lan, whatever time
do not run when the notebook is not connected to the home lan
The best way would be to run replication only when triggered through an external command.
I assume you are just trying to solve the "authenticate to laptop when not connected" problem.
I usually just use pam_ccreds and nss_updatedb/nss_db for this.
However, have you tried using *both* interval and retry in refreshAndPersist mode? I think it should work sufficiently (except for unnecessary network connection attempts).
Regards, Buchan
However, have you tried using *both* interval and retry in refreshAndPersist mode? I think it should work sufficiently (except for unnecessary network connection attempts).
I'm not sure that this makes sense...I'm pretty sure that 'interval' is used only with refreshOnly. But I agree that the concept in general is sound.
openldap-software@openldap.org