-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to new repository golib/auth/userinfo. #4
Conversation
While this would work, the interface you need for ldap groups in general needs also a group filter see: https://github.com/Cloud-Foundations/keymaster/blob/d003619c9bde950e5935ce8f74bcdc2b4b327a45/lib/authutil/authutil.go#L294. To prevent future changes to the api for the ldap userinfo can you also add those to the library so that when we fix the library we dont need to backport much? |
Which API are you suggesting to change? I think the generic interface should not change. If we're considering changing the API, how about removing the pointer for the Another suggested API change is to return a |
We need a way to filter groups at the server side.. a group filter (generic) would be OK for the ldap backend. But I agree that the removal of the groupprefix would be the right thing to do. The correct implementation actually the one one from keymaster. |
I have restored the LDAP group search and filtering capability. PTAL. |
if config.AWS.GroupPrefix == "" { | ||
b.userInfo = b.rawUserInfo | ||
} else { | ||
ui, err := filter.NewUserGroupsFilter(b.rawUserInfo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the case of having a GroupPrefix.. wont this make a new filter wrapping the filtered data already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rawUserInfo
does not have a group prefix filter already. I've abstracted that functionality into a common package so that the low-level implementations don't have to duplicate that.
No description provided.