Reputation: 770
I have some understanding problems of LDAP. When i use an Active Directory Server i can bind with username@domain and a password.
When i use ApacheDS i must give it the full DN of the user and a password.
So i have the folowing Questions:
Upvotes: 0
Views: 8210
Reputation: 1815
As marabu said you can simulate the authentication using a search on the directory before doing the bind.
You can also look for SASL authentication which provides other ways to authenticate.
Here are a list of ApacheDS supported SASL mechanism : http://directory.apache.org/apacheds/advanced-ug/4.1.2-sasl-authn.html
Upvotes: 1
Reputation: 1196
Generally, LDAP authentication is done in two steps:
(&(objectClass=user)(uid=%s))
Active Directory comes with a convenience feature: You can bind using a couple of supported identifiers and AD will do the mapping internally for you.
ApacheDS isn't a plug-and-play substitute for AD, but it's extensible. A Java developer can easily write an authentication interceptor providing the same internal mapping as AD.
Upvotes: 2