LDAP搜索中的CN,OU,DC是什么? [英] What are CN, OU, DC in an LDAP search?
问题描述
我在LDAP中有这样的搜索查询.该查询到底是什么意思?
I have a search query in LDAP like this. What exactly does this query mean?
("CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com");
推荐答案
-
CN
=通用名称 -
OU
=组织单位 -
DC
=域组件 CN
= Common NameOU
= Organizational UnitDC
= Domain Component
这些都是X.500目录规范的所有部分,该规范定义了LDAP目录中的节点.
These are all parts of the X.500 Directory Specification, which defines nodes in a LDAP directory.
您还可以阅读 LDAP数据交换格式(LDIF
),另一种格式.
You can also read up on LDAP data Interchange Format (LDIF
), which is an alternate format.
您从右到左阅读它,最右边的组件是树的根,最左边的组件是您想要到达的节点(或叶).
You read it from right to left, the right-most component is the root of the tree, and the left most component is the node (or leaf) you want to reach.
每个=
对都是一个搜索条件.
Each =
pair is a search criteria.
使用示例查询
("CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com");
实际上,查询是:
在com
域组件中,找到google
域组件,然后在其中gl
域组件,然后在其中gp
域组件.
From the com
Domain Component, find the google
Domain Component, and then inside it the gl
Domain Component and then inside it the gp
Domain Component.
在gp
域组件中,找到名为Distribution Groups
的组织单位,然后找到通用名称为Dev-India
的对象.
In the gp
Domain Component, find the Organizational Unit called Distribution Groups
and then find the the object that has a common name of Dev-India
.
这篇关于LDAP搜索中的CN,OU,DC是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!