Open makrelas opened 5 months ago
Altohugh I don't know where the exact issue lies, I have worked around this by removing upndomain
, configuring binddn
, bindpass
and setting discoverdn
to true
.
Hope this helps in finding the root cause of this issue.
Describe the bug After updating vault to 1.16.x (0,1,2,3) LDAP (AD) vault authentication fails in UI and CLI with error message "Authentication failed: ldap.(Client).Authenticate: failed to get user attributes: ldap.(Client).getUserAttributes: missing user dn: invalid parameter"
Bind operation works normally. Logs of that failed query are not being produced on any level of debug.
To Reproduce Steps to reproduce the behaviour:
URL: PUT https://127.0.0.1:8200/v1/auth/ldap/login/REDACTED Code: 400. Errors:
Expected behavior User is authenticated
Environment:
vault status
): 1.16.3vault version
): 1.16.3Vault server configuration file(s): vault read auth/ldap/config
Additional context
userfilter changes does not seem to impact anyhow the user search query made (it's always upn)
username_as_alias change suggested in other similar issues did not change anything
Setting userattr="userprincipalname" as upgrade documentation suggests does not change anything
Observing bind/search process as tcpdump using unencrypted ldap, bind succeeds both on 1.15.x and 1.16.x Operation that yields different results is following LDAP search. Strange thing is - request appears to be the same on both versions, yet response is different.
On 1.15.6 - working
On 1.16.3 0 - not working