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
I'm having trouble understanding the correct setup for running ldap2pg with an unprivileged user and would appreciate some clarification.
According to the documentation:
ldap2pg is designed to run unprivileged. Synchronization user needs CREATEROLE option to manage other unprivileged roles. CREATEDB options allows synchronization user to managed database owners.
Based on this, I expected that creating a synchronization user with the following commands would be sufficient:
CREATE ROLE ldap2pg LOGIN CREATEDB CREATEROLE;
ALTER ROLE ldap2pg SET createrole_self_grant TO 'inherit,set';
When I run ldap2pg using this user, I get the error:
databases: default database not listed
The only way I can get it to work is by making the user the owner of the database I want to sync.
My questions are:
Is there something I'm missing in my user setup?
Does the synchronization user need additional permissions beyond CREATEDB and CREATEROLE?
Is making the user a database owner the intended approach, or should the setup I tried work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble understanding the correct setup for running ldap2pg with an unprivileged user and would appreciate some clarification.
According to the documentation:
Based on this, I expected that creating a synchronization user with the following commands would be sufficient:
When I run ldap2pg using this user, I get the error:
The only way I can get it to work is by making the user the owner of the database I want to sync.
My questions are:
CREATEDB
andCREATEROLE
?Any guidance would be greatly appreciated!
Environment details:
Beta Was this translation helpful? Give feedback.
All reactions