[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Determining the master server



Pierangelo Masarati wrote:

Is there any way than an OpenLDAP client can tell whether a particular
server is a master or a slave for a particular suffix, without actually
trying to update it and seeing what comes back?



I think the referral mechanism resulting from performing a write operation on a slave is the intended mech. In 2.3 (actually, in HEAD; scheduled for 2.3) you may browse the configuration in back-config ("cn=config") and see if a server is a master or a slave;

Only the directory administrator has access to cn=config, so clients in general cannot do this.

or you may ask for a feature like
registering this info into back-monitor ("cn=monitor").

p.





--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support