Java LDAP Authentication
I am trying to use LDAP for authentication. I am using the OpenLDAP library by Novell to do开发者_如何学Go this (http://www.openldap.org/jldap/).
My issue is that it wants a full Distinguished Name to authenticate. However, what if I dont have the users OU?
You search!
You need some identifying piece of information. Username, email, full name. Then you search for a user who uid= or mail= or whatever works.
That returns the full DN then you proceed from there.
精彩评论