Can't log in with AD user/LDAP configuration issue
Description:
I set multiple configuration sets for LDAP(Windows) connection and I can't log in with user from desired group. Sync and test connection is successful. Please help!
Server Setup Information:
- Version of Rocket.Chat Server: 0.58.3
- Operating System: Ubuntu 16.04
- Deployment Method:snap
- Number of Running Instances: 1
- DB Replicaset Oplog:
- Node Version:
Log with user from AD group.
Actual behavior: User not found or wrong pass and in logs I dont see any error.
Screenshots are below:

Did you set
Domain Search User?
(Not Domain Search User ID)
We have it in form:
CN=ldap_search_user,OU=Users,DC=example,DC=com
Also can you see all your users listed under Users after you have pressed Sync Users on the LDAP page? (May take some 20 seconds to get populated after initiating sync.)
@Gummikavalier Yes, I even changed couple of users, created new one etc. Test does not go well if you don't, I think?
When I select import users, in users tab I don't see AD users from CHAT group. But Sync test goes well.
Ok. From what I see the differences to our setup would then be, leaving out encryption stuff, that we don't use the group (CN) directly in the Domain Base (looking at your first picture) but:
OU=xx,DC=xx,DC=local
and do domain search filter that would look like
memberof=CN=CHAT,OU=XX,DC=XX,DC=local
Also we don't have anything in Default Domain and we have Merge existing users = false
Also I forgot to add: Login fails if you don't have anything in the mail attribute in AD.
@Gummikavalier thank you for your help....I changed all as you did and still only 2 users in users tab and I can not log in with desired users :(
still no solution....
I checked that AD does not have attribute called name by default. You have one in your User Data Field Map.
{"name":"name", "mail":"email"}
You should use one of these:
givenName
sn
displayName
sAMAccountName
For example {"displayName":"name", "mail":"email"}
There are also examples below the setting how to construct givenName+sn to full name.
@VedranOP Did you solve your problem?
If not please let me know and we can chat directly to find the solution or fix some bug.
I made a fresh reinstall and now all good. Thank you... :)
On 23 Oct 2017 22:32, "Rodrigo Nascimento" [email protected] wrote:
@VedranOP https://github.com/vedranop Did you solve your problem?
If not please let me know and we can chat directly to find the solution or fix some bug.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RocketChat/Rocket.Chat/issues/8410#issuecomment-338787326, or mute the thread https://github.com/notifications/unsubscribe-auth/AV38RN4FL4Vhigwmr7MdQaSxSXnlrKZrks5svPfKgaJpZM4PvIMy .
Ok, I'll close this issue.
Let me know directly if you have more issues in LDAP (https://open.rocket.chat/direct/rodrigo.nascimento)
Thanks