歡迎您光臨本站 註冊首頁

LDAP URL格式問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

LDAP URL格式問題

ldapurl = scheme "://" ["/"
["?"
["?" ["?" extensions]]]]]]
scheme = "ldap"
attributes = attrdesc *("," attrdesc)
scope = "base" / "one" / "sub"
dn = distinguishedName from Section 3 of
hostport = hostport from Section 5 of RFC1738
attrdesc = AttributeDescription from Section 4.1.5 of
filter = filter from Section 4 of
extensions = extension *("," extension)
extension = ["!"] extype ["=" exvalue]
extype = token / xtoken
exvalue = LDAPString from section 4.1.2 of
token = oid from section 4.1 of
xtoken = ("X-" / "x-") token

["?" extensions]]]]]]最後的這個擴展實在看不懂了...不知道能拿來做啥.

extype = token / xtoken
exvalue = LDAPString from section 4.1.2 of
token = oid from section 4.1 of
xtoken = ("X-" / "x-") token

這四個參數也有點不知所云...
哪位能給掃掃盲?
《解決方案》

自問自答下:
擴展的格式定義如下:
attr [":dn"] [":" matchingrule] ":=" value

matchingrule是可以用OID來定位的.
matchingrule is usually given by an object identifier (OID), although if a descriptive name has been assigned to the matching rule, that may be used as well. The OIDs of the matching rules supported by your directory server will be given in its documentation.

詳見:
Understanding and Deploying LDAP Directory Services, Second Edition
2.2:The LDAP Models

[火星人 ] LDAP URL格式問題已經有513次圍觀

http://coctec.com/docs/service/show-post-21272.html