[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LCUP: confusing text: cookies and schemes



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.