[Date Prev][Date Next]
Re: Determining the master server
Pierangelo Masarati wrote:
Only the directory administrator has access to cn=config, so clients in
general cannot do this.
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;
or you may ask for a feature like
registering this info into back-monitor ("cn=monitor").
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support