LDAP 搜索中的 CN、OU、DC 是什么? [英] What are CN, OU, DC in an LDAP search?

查看:25
本文介绍了LDAP 搜索中的 CN、OU、DC 是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 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 Name
    • OU = Organizational Unit
    • DC = 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 object that has a common name of Dev-India.

      这篇关于LDAP 搜索中的 CN、OU、DC 是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆