I need to authenticate users against Active Directory from java. In order to understand what is going on under the hood I've started with openldap docker instance and spring tutorial from here: https://spring.io/guides/gs/authenticating-ldap/
What I understand from many debug sessions is that Spring retrieves password attribute from ldap and compares it with hashed user password or it just filters users by uid and hashed password and if there is an entry then the password is correct.
Ok, sounds good. Now I'm trying to do the same thing against Active Directory. The problem is is that when I retrieve user from it, it gives me many attributes, but it doesn't give me any attribute which look like hashed password. So maybe Active Directory doesn't allow to get password attribute and I should filter users by this attribute. But I don't know it's name and don't know where to get it.
So my questions are: 1. Do I understand everything right? 2. Do I need to just filter users by uid and hashed password? 3. If the second one is correct, then what is the query for users filtration? 4. If the second one is not correct, then what did I understand wrong and how should I authenticate users against Active Directory from java?