Skip to content
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

How to alter role ldap_roles in the ldap2pg.yml script #368

Closed
HermanPool opened this issue May 26, 2021 · 2 comments
Closed

How to alter role ldap_roles in the ldap2pg.yml script #368

HermanPool opened this issue May 26, 2021 · 2 comments
Labels

Comments

@HermanPool
Copy link

I use enterprisedb postgres.
How can I alter the role ldap_roles in the ldap2pg.yml file?
After creating the role ldap_roles I want to alter the role with the statement:
alter role ldap_roles set edb_audit_statement to 'all'

I want to alter the role in the ldap2pg.yml file and not in a seperate sql file or script.

@bersace
Copy link
Member

bersace commented May 27, 2021

Hi @HermanPool , thanks for reaching.

There is nothing like custom sql as of now in ldap2pg, except for privileges.

There is a workaround through, but quite ugly, use a privilege. Something like :

privileges:
  edb_audit_statement:
    grant: ALTER ROLE {role} SET edb_audit_statement to 'all'

sync_map:
- grant:
    privilege: edb_audit_statement
    role: ldap_roles

YMMV.

This looks like #171.

@bersace
Copy link
Member

bersace commented Nov 16, 2021

Closing stale issue.

@bersace bersace closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants