LCUP: confusing text: cookies and schemes

"Kurt D. Zeilenga" <[email protected]> Sat, 14 Sep 2002 18:47:14 -0700
Newsgroups gmane.ietf.ldup
Message-ID <[email protected]>
I find the wording used in the document quite confusing.
Namely because it defines a cookie as represent client state,
but is then says it may be sent initially (without value)
to indicating the desired scheme.

I believe the specification would be a lot clearer if the cookie/scheme
were defined as:

  LCUPScheme ::= LDAPOID
  LCUPCookie ::= SEQUENCE {
	scheme          LCUPScheme,
	value           OCTET STRING
  }

and request control was defined as:

  ClientUpdateControlValue ::= SEQUENCE {
      updateType         ENUMERATED {
                               synchronizeOnly         (0),
                               synchronizeAndPersist   (1),
                               persistOnly             (2) },
      sendCookieInterval INTEGER    OPTIONAL,
      scheme		  LCUPScheme OPTIONAL,
      cookie             LCUPCookie OPTIONAL
  }

where scheme may only be specified on initial request to indicate
desired scheme and cookie must be provided on subsequent
requests.