本文翻译自:What are CN, OU, DC in an LDAP search?

I have a search query in LDAP like this. 我在这样的LDAP中有一个搜索查询。 What exactly does this query mean? 这个查询究竟是什么意思?

("CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com");

#1楼

参考:https://stackoom.com/question/1GhTE/LDAP搜索中的CN-OU-DC是什么


#2楼

  • CN = Common Name CN =通用名称
  • OU = Organizational Unit OU =组织单位
  • DC = Domain Component DC =域组件

These are all parts of the X.500 Directory Specification, which defines nodes in a LDAP directory. 这些是X.500目录规范的所有部分,它定义了LDAP目录中的节点。

You can also read up on LDAP data Interchange Format ( LDIF ) , which is an alternate format. 您还可以阅读LDAP数据交换格式( LDIF ) ,这是一种替代格式。

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. 每个=对是搜索条件。

With your example query 使用您的示例查询

("CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com");

In effect the query is: 实际上查询是:

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. com域组件中,找到google Domain Component,然后在其中找到gl Domain Component,然后在其中找到gp Domain Component。

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 . gp域组件中,找到名为“ Distribution Groups的组织单位,然后找到具有公共名称Dev-India


#3楼

What are CN, OU, DC? 什么是CN,OU,DC?

From RFC2253 (UTF-8 String Representation of Distinguished Names) : 来自RFC2253(专有名称的UTF-8字符串表示) :

 String X.500 AttributeType ------------------------------ CN commonName L localityName ST stateOrProvinceName O organizationName OU organizationalUnitName C countryName STREET streetAddress DC domainComponent UID userid 

What does the string from that query mean? 该查询的字符串是什么意思?

The string ( "CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com" ) is a path from an hierarchical structure ( DIT = Directory Information Tree ) and should be read from right (root) to left (leaf). 字符串( "CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com" )是来自层次结构 ( DIT =目录信息树 )的路径,应该被读取从右 (根) 到左 (叶)。

It is a DN (Distinguished Name) (a series of comma-separated key/value pairs used to identify entries uniquely in the directory hierarchy). 它是DN (专有名称)(用于在目录层次结构中唯一标识条目的一系列逗号分隔的键/值对)。 The DN is actually the entry's fully qualified name. DN实际上是条目的完全限定名称。

Here you can see an example where I added some more possible entries. 在这里,您可以看到我添加了一些可能的条目的示例。
The actual path is represented using green. 实际路径使用绿色表示。

The following paths represent DNs (and their value depends on what you want to get after the query is run): 以下路径表示DN(它们的值取决于运行查询后要获取的内容):

  • "DC=gp,DC=gl,DC=google,DC=com"
  • "OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com"
  • "OU=People,DC=gp,DC=gl,DC=google,DC=com"
  • "OU=Groups,DC=gp,DC=gl,DC=google,DC=com"
  • "CN=QA-USA,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com"
  • "CN=Dev-India,OU=Distribution Groups,DC=gp,DC=gl,DC=google,DC=com"
  • "CN=Ted Owen,OU=People,DC=gp,DC=gl,DC=google,DC=com"

LDAP搜索中的CN,OU,DC是什么?相关推荐

  1. LDAP 中关于CN,OU,DC的含义

    CN,OU,DC都是LDAP连接服务器的端字符串中的区别名称(DN,distinguished    name); LDAP连接服务器的连接字串格式为:ldap://servername/DN    ...

  2. ldap 服务器基础:CN, OU, DC 含义

    1. LDAP的存储规则 区分名(DN,Distinguished Name) 文件系统/LDAP/电话号码簿目录的每一个分支都至少有一个独一无二的属性,这一属性可以帮助我们来区别. 文件系统,相对路 ...

  3. LDAP 中 CN, OU, DC 的含义(ldap学习一)

    很多人虽然会使用dsadd等命令添加用户,但是dsadd的命令说明里面并没有涉及到dc,cn,ou的含义,很多人都不明白,这里是微软的技术支持人员的回信,希望对大家有帮助.  CN, OU, DC 都 ...

  4. LDAP 中 CN, OU, DC 的含义

    http://ssailyang.iteye.com/blog/413518 转自:http://stevenit.bokee.com/viewdiary.30578007.html 很多人虽然会使用 ...

  5. LDAP中CN,OU,DC的含义

    LDAP中CN,OU,DC的含义 摘自:http://hi.baidu.com/deboywang/blog/item/e8e810ee5115eefab2fb959e.html 很多人虽然会使用ds ...

  6. java ldap 根ou_【LDAP】LDAP 中 CN, OU, DC 的含义

    1. LDAP的存储规则 区分名(DN,Distinguished Name) 和自然界中的树不同,文件系统/LDAP/电话号码簿目录的每一片枝叶都至少有一个独一无二的属性,这一属性可以帮助我们来区别 ...

  7. LDAP 中 CN OU DC 的含义

    1. LDAP的存储规则 区分名(DN,Distinguished Name) 和自然界中的树不同,文件系统/LDAP/电话号码簿目录的每一片枝叶都至少有一个独一无二的属性,这一属性可以帮助我们来区别 ...

  8. ldap CN, OU, DC 含义

    1. LDAP的存储规则 区分名(DN,Distinguished Name) 和自然界中的树不同,文件系统/LDAP/电话号码簿目录的每一片枝叶都至少有一个独一无二的属性,这一属性可以帮助我们来区别 ...

  9. ldap基本dn_LDAP 中 DN CN DC OU

    DN 的英文名称是(distinguished name),直接翻译过来就是专有名称. 简单的就可以理解为一个路径就对了. 这个路径可以指向 OU ,也可以指到 CN. 其中 DN 有三个属性,分别是 ...

最新文章

  1. Linux root用户忘记密码解决方法
  2. Python在cmd中配置虚拟环境ERROR: Command errored out with exit status 1:
  3. Kubernetes存储卷的使用
  4. mariadb与mysql的兼容_「MySQL架构」MariaDB versus MySQL: Compatibility
  5. ios Image裁剪成圆形的方法
  6. Linux中文件颜色所代表的属性和颜色
  7. 罗永浩要造智能音箱;苹果承认bug;微软特制AI曝光 | 极客头条
  8. idea报错Cannot resolve jdk.tools:jdk.tools:1.7
  9. NoSQL数据库简介——《大数据技术原理与应用》课程学习总结
  10. 关于select和option下拉框样式问题
  11. 语义分析(输出四元式)
  12. 如何通俗易懂理解云原生
  13. 流量、电量、弱网环境怎么测?
  14. 2016年末总结--感谢你们的存在
  15. numpy.pad对图片进行填充
  16. 【python教程入门学习】ASCII码一览表,ASCII码对照表
  17. Android 检测手机的敲击事件
  18. java语言会在很短的时间内迅速流行_在短时间内流行起来又迅速平息的时尚状态是()A.阵热B.时髦C.时狂D.狂热...
  19. 【自动驾驶】杜明芳:基于多尺度IPM图的车道线检测实现
  20. js版身份证省市性别查询(18位和15位)

热门文章

  1. ctf入门第一篇——如来十三掌
  2. 世鸿汇创投资理财收益却越来越少的原因
  3. android曲面屏触摸事件,Android屏幕适配完美解决方案(曲面屏手机也是小Case)
  4. GhostXP_SP3 电脑公司特别版 v2011.08
  5. 我为什么选择Firefox作为主力浏览器
  6. 视频教程-大型ERP实战项目教程-Java
  7. Exp10 Final 类CTF(Webug3.0漏洞靶场—渗透基础)
  8. MATLAB sin和sind的区别
  9. PDF编辑搞不定?迅读PDF大师,了解一下?
  10. javascript实现的猜字小游戏