-
Notifications
You must be signed in to change notification settings - Fork 33
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
Process values in template, alias filter #274
Comments
I think that this feature will spread ldap2pg package usability. a) upper, lower How could be multiple filters applied at once? |
At this moment I don't think, that LDAP values filtering will be usable, as we need to authenticate user later and apply a reverse filter on applied previously, but it is error-prone. |
Filters are chainable: Let's wait for some more feedback on this. Maybe a cookbook section on this subject would help. |
For now, there is a bug. ldap2pg doesn't properly infer LDAP attributes from |
For the record, this require Postgres to be able to find back the right value to query LDAP directory for password. This is not likely to be easy. So, the better is not to modify LDAP values in ldap2pg, but rather have a preprocessed attribute directly in LDAP directory. Let's keep this open for a few weeks before closing it. |
I'm closing, post processing in ldap2pg what can't be done in pg_hba is useless. Thanks for the issue. |
The need is to process LDAP values while rendering role or grant parameters. This would looks like:
The trick is to subclass string values with a extended class implementing various filter.
Filters idea
upper
,lower
-> natives.slugify
: escape for Posgres native.Tasks
The text was updated successfully, but these errors were encountered: