02.07.2013 Views

LDAP 基础知识

LDAP 基础知识

LDAP 基础知识

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>LDAP</strong> <strong>基础知识</strong><br />

服务器进行查询过滤的网络描述。一些应用程序可能使用某种通用的方法把查询过滤表示为人<br />

可识别的结构。本文档以人可识别的字符串表示过滤条件。<br />

本文档扩展了 <strong>LDAP</strong> 过滤字符串定义包括支持 <strong>LDAP</strong>v3 扩展匹配过滤及表示 <strong>LDAP</strong> 查询过滤可<br />

能的全部范围。<br />

7.2 <strong>LDAP</strong> 查询过滤定义<br />

Filter ::= CHOICE {<br />

and [0] SET OF Filter,<br />

or [1] SET OF Filter,<br />

not [2] Filter,<br />

equalityMatch [3] AttributeValueAssertion,<br />

substrings [4] SubstringFilter,<br />

greaterOrEqual [5] AttributeValueAssertion,<br />

lessOrEqual [6] AttributeValueAssertion,<br />

present [7] AttributeDescription,<br />

approxMatch [8] AttributeValueAssertion,<br />

extensibleMatch [9] MatchingRuleAssertion<br />

}<br />

SubstringFilter ::= SEQUENCE {<br />

type AttributeDescription,<br />

SEQUENCE OF CHOICE {<br />

initial [0] <strong>LDAP</strong>String,<br />

any [1] <strong>LDAP</strong>String,<br />

final [2] <strong>LDAP</strong>String<br />

}<br />

}<br />

AttributeValueAssertion ::= SEQUENCE {<br />

attributeDesc AttributeDescription,<br />

attributeValue AttributeValue<br />

}<br />

MatchingRuleAssertion ::= SEQUENCE {<br />

matchingRule [1] MatchingRuleID OPTIONAL,<br />

type [2] AttributeDescription OPTIONAL,<br />

matchValue [3] AssertionValue,<br />

dnAttributes [4] BOOLEAN DEFAULT FALSE<br />

}<br />

AttributeDescription ::= <strong>LDAP</strong>String<br />

AttributeValue ::= OCTET STRING<br />

MatchingRuleID ::= <strong>LDAP</strong>String<br />

AssertionValue ::= OCTET STRING<br />

<strong>LDAP</strong>String ::= OCTET STRING<br />

天津南开创元信息技术有限公司 Page 26 of 28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!