Network Working Group K. Zeilenga Request for Comments: 4528 OpenLDAP Foundation Category: Standards Track June 2006Lightweight Directory Access Protocol (LDAP) Assertion Control
Zeilenga Standards Track [Page 1]
RFC 4528 LDAP Assertion Control June 2006 1. OverviewThis document defines the Lightweight Directory Access Protocol (LDAP) [RFC4510] assertion control. The assertion control allows the client to specify a condition that must be true for the operation to be processed normally. Otherwise, the operation is not performed. For instance, the control can be used with the Modify operation [RFC4511] to perform atomic "test and set" and "test and clear" operations.
2. Terminology
Protocol elements are described using ASN.1 [X.680] with implicit tags. The term "BER-encoded" means the element is to be encoded using the Basic Encoding Rules [X.690] under the restrictions detailed in Section 5.1 of [RFC4511].
3. The Assertion Control
The assertion control is an LDAP Control [RFC4511] whose controlType is 1.3.6.1.1.12 and whose controlValue is a BER-encoded Filter [Protocol, Section 4.5.1]. The criticality may be TRUE or FALSE. There is no corresponding response control.
Zeilenga Standards Track [Page 2]
RFC 4528 LDAP Assertion Control June 2006
For Add, Compare, and ModifyDN operations, the target is indicated by the entry field in the request. For Modify operations, the target is indicated by the object field. For Delete operations, the target is indicated by the DelRequest type. For Compare operations and all update operations, the evaluation of the assertion MUST be performed as an integral part of the operation. That is, the evaluation of the assertion and the normal processing of the operation SHALL be done as one atomic action.
4. Security Considerations
The filter may, like other components of the request, contain sensitive information. When it does, this information should be appropriately protected.
Zeilenga Standards Track [Page 3]
RFC 4528 LDAP Assertion Control June 2006 5. IANA Considerations 5.1. Object IdentifierThe IANA has assigned an LDAP Object Identifier [RFC4520] to identify the LDAP Assertion Control defined in this document.
5.2. LDAP Protocol Mechanism
Registration of this protocol mechanism [RFC4520] is requested.
5.3. LDAP Result Code
The IANA has assigned an LDAP Result Code [RFC4520] called 'assertionFailed' (122).
Zeilenga Standards Track [Page 4]
RFC 4528 LDAP Assertion Control June 2006 6. AcknowledgementsThe assertion control concept is attributed to Morteza Ansari.
7. References 7.1. Normative References[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
7.2. Informative References
[RFC4520] Zeilenga, K., "Internet Assigned Numbers Authority
Zeilenga Standards Track [Page 5]
RFC 4528 LDAP Assertion Control June 2006
Full Copyright Statement