java 什么是 LDAP 术语中的 userDn 和 base

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16084180/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 21:50:46  来源:igfitidea点击:

what is userDn and base in LDAP terminology

javaspringldap

提问by pankaj

I want to authenticate a user in LDAPusing springin java. I found that for configuration of LDAPwith spring, I need urls, userDn, password& base values like shown below:

我想在 java中LDAP使用spring对用户进行身份验证。我发现,对于配置LDAP弹簧,我需要的URL用户DN密码及基值等如下所示:

urls=ldap://127.0.0.1:389
userDn=cn=Directory Manager
password=abcd
base=dc=example,dc=com

My question is, what is exactly this userDnand base? What does these signifies? And which userDnvalue we need to specify in this configuration??

我的问题是,这个userDnbase到底是什么?这些是什么意思?我们需要在这个配置中指定哪个userDn值??

回答by Terry Gardner

The base objectis the point in the directory information tree (DIT) at which the search should begin constructing candidates for entries to return in the search result. The scopeof the search search determine the depth of the tree as follows:

base object是在目录信息树(DIT)在该搜索应该开始为项目建设考生在搜索结果归路。该scope搜索搜索确定树的深度如下:

  • subtreescope: the base object and al entries subordinate to the base object
  • one: all objects immediately subordinate to the base object, but not including the base object.
  • base: just the base object. base level search should always be used when the distinguished name is known.
  • 子树范围:基础对象和从属于基础对象的所有条目
  • :直接从属于基础对象的所有对象,但不包括基础对象。
  • base: 只是基础对象。当可分辨名称已知时,应始终使用基本级别搜索。

The userDnin this case appears to be a distinguished name of a user that will authenticate to the directory using a BIND request.

userDn这种情况下似乎是,将验证到使用BIND请求目录中的用户的识别名称。

see also

也可以看看