I want to authenticate a user in LDAP
using spring in java. I found that for configuration of LDAP
with spring, I need urls, userDn, password & base values like shown below:
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 userDn and base? What does these signifies? And which userDn value we need to specify in this configuration??
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:
The userDn
in this case appears to be a distinguished name of a user that will authenticate to the directory using a BIND request.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With