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
what is userDn and base in LDAP terminology
提问by pankaj
I want to authenticate a user in LDAP
using springin java. I found that for configuration of LDAP
with 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??
我的问题是,这个userDn和base到底是什么?这些是什么意思?我们需要在这个配置中指定哪个userDn值??
回答by Terry Gardner
The base object
is 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 scope
of 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 userDn
in this case appears to be a distinguished name of a user that will authenticate to the directory using a BIND request.
在userDn
这种情况下似乎是,将验证到使用BIND请求目录中的用户的识别名称。