Active directory auth fails on first attempt, succeeds on second #1707
Description
We noticed that after enabling AD authentication on our Graylog 1.2.2 the first attempt was always unsuccessful, while the second was always successful.
So I did a packet dump during the logins to try and narrow it down.
This is what happens:
Packet dump started
User try to login 1st time
Login fail
Wait for 20 seconds
Packet dump stopped
New packet dump started
User try to login 2nd time
Login successfull
Wait 20 seconds
Packet dump stopped
When checking the packet dump I can see that after the 1st login, no attempt to communicate with LDAP servers were made.
When 2nd login attempt was done, I could see LDAP communication.
I can successful replicate this issue every time by logging out user and attempt to login again.
What debugs and logs could be useful here? Is this a known issue?