You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
LDAP queries that return a large number of results are still erroring with the fix for #4162 . When an LDAP server is setup to only return 1000 results a group query which returns more than that will fail.
To Reproduce
Steps to reproduce the behavior:
Setup LDAP auth with a group filter that will return more than 1000 groups
Attempt to login
Login fails with LDAP search failed: LDAP Result Code 4 "Size Limit Exceeded"
Expected behavior
The login should be successful and all groups should be returned in the query response so authentication will succeed.
Environment:
Vault Server Version (retrieve with vault status): 1.2.3
Vault CLI Version (retrieve with vault version): 1.2.3
Describe the bug
LDAP queries that return a large number of results are still erroring with the fix for #4162 . When an LDAP server is setup to only return 1000 results a group query which returns more than that will fail.
To Reproduce
Steps to reproduce the behavior:
LDAP search failed: LDAP Result Code 4 "Size Limit Exceeded"
Expected behavior
The login should be successful and all groups should be returned in the query response so authentication will succeed.
Environment:
vault status
): 1.2.3vault version
): 1.2.3Vault server configuration file(s):
Additional context
To see the problem, the LDAP server must be setup to return fewer groups than the number of groups which match the query.
This search appears to need updated: https://github.com/hashicorp/vault/blob/master/sdk/helper/ldaputil/client.go#L120-L125
Should use something like this:
Example using go-ldap. Given the proper group query, the first search will fail and the second will succeed:
The text was updated successfully, but these errors were encountered: