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

Re: Sync Replication



James Courtney wrote:

Anyway, I just tried your suggestion (criticality = false) and it
seems to work now.

Why can't I see all available controls in the Root DSE. I though they
were supposed to be published there somehwere? I'd as on-list but as
mentioned - issues with that :(


Many of the controls that slapd supports are not yet approved standards. These controls are not advertised in the Root DSE. The syncrepl control is an instance of a supported, unadvertised control.

Many thanks!

Jamey



On 5/12/05, Howard Chu <hyc@symas.com> wrote:


It sounds to me like you're hitting a bug related to critical vs
non-critical controls in 2.2
http://www.openldap.org/lists/openldap-devel/200501/msg00082.html

The situation got a bit messy but is now fixed in HEAD/2.3; I don't
recall the changes being ported into 2.2.

If you're going to keep using 2.2, you should make sure to leave the
Critical flag FALSE here.

James Courtney wrote:



I have (I believe) correctly implemented a Java (JNDI) search control
for the OpenLDAP Sync Replication control.  When I use this to search my
OpenLDAP 2.2.15 (on RedHat 3 ES) OR 2.2.26 (Cygwin on WinXP) servers
(both with BDB) I get:

javax.naming.OperationNotSupportedException: [LDAP: error code 12 -
control unavailable in context]

I also notice when browsing either directory using Softerra's LDAP
Browser (quite nice if you've not used it) that I cannot see the Sync
Request Control (1.3.6.1.4.1.4203.1.9.1.1) being offered under
Properties -> LDAP Settings -> Advanced.  This dialog displays the
server controls available.

Did I need to compile something differently to see this control?  Do I
need to set something differently?  I have the sessionlog statement in
my slapd.conf and loaded my ldif using "slapadd -pw".

Yes, I've read both draft-zeilenga-ldup-sync-06.txt and section 14: LDAP
Sync Replication from the 2.2 users guide at openldap.org.

My understanding is that I SHOULD be able to code to this control as a
client application and that LDAP Sync Replication is generally
applicable to client-side syncronization for a variety of applications,
not just for OpenLDAP->OpenLDAP syncronization.

Many thanks!

Jamey






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










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