4. 协议元素 (Elements of Protocol)
本协议使用 Abstract Syntax Notation One ([ASN.1]) 描述, 并使用 ASN.1 Basic Encoding Rules ([BER]) 的一个子集传输. 第 5 节规定 protocol element 如何编码和传输.
为支持本协议未来扩展, 在 ASN.1 允许的位置隐含可扩展性, 即 sequence, set, choice 和 enumerated type 可扩展. 此外, 对显式可扩展的 ASN.1 type 提供省略号 (...), 如 [RFC4520] 所述. 由于存在隐含可扩展性, 除非另有规定, client 和 server 必须忽略其 tag 不认识的 trailing SEQUENCE component.
除本文档所述 extension mechanism 外, 对协议的其他变更需要不同 version number. client 在 BindRequest 中指示其使用的版本. 如果 client 尚未发送 Bind, server 必须假定 client 使用 version 3 或更高版本.
client 可以通过读取 root DSE (DSA-Specific Entry) [RFC4512] 中的 supportedLDAPVersion attribute, 尝试确定 server 支持的 protocol version.
4.1. 通用元素 (Common Elements)
本节描述 LDAPMessage envelope PDU 格式以及协议操作中使用的数据类型定义.
第 4 章的主要主题包括:
- 4.1 Common Elements
- 4.2 Bind Operation
- 4.3 Unbind Operation
- 4.4 Unsolicited Notification
- 4.5 Search Operation
- 4.6 Modify Operation
- 4.7 Add Operation
- 4.8 Delete Operation
- 4.9 Modify DN Operation
- 4.10 Compare Operation
- 4.11 Abandon Operation
- 4.12 Extended Operation
- 4.13 IntermediateResponse Message
- 4.14 StartTLS Operation
这些 operation 共同定义 LDAP message envelope, authentication, search, update, compare, abandon, extended operation 和 StartTLS 行为.