-
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
Query for databases not scraped properly? #255
Comments
Hi @Stanislasss , thanks for the report !
In your YML, it looks like you missed
That would be great to drop duplicated code in ldap2pg ! ldap2pg is already using pyyaml to parse From your report, I sugget to improve ldap2pg this way:
Do you have some more ideas ? |
Hi @bersace, Impressive fast answer.
No more ideas regarding the tool behavior, but I just started with is it so may be later on. Otherwise are you still interested in having someone creating a Dockerfile for it? And do you know where I could get some documentation on how to configure ldap to use ldaps or starttls with your tool? |
Hi @Stanislasss No worry for your level :-) For your information, ldap2pg config loading is in Youre experience as a newcomer is very welcome. If you fight with ldap2pg that's a bug ;-). ldap2pg just expects you to know basically how to manually setup a ldap authenticated role in Postgres. Yes, there is an issue about Dockerfile : #202 . PR welcome ! I tend to reduce image size. Also, i would like to ship only released version in Dockerfile. Let's talk about this on #202 or on a PR. Any starting point would be good :-) Please keep this issue opened until I resolved the two improvements. Would you like to tell me if everything went well once you're done ? |
Sure thing, I'll let the ticket opened until then, and let you know about my setup experience. ;-) |
@bersace Nice work. Thanks for the great follow-up. |
Hi,
with this yml configuration file:
I got a connection attempt on "rdsadmin" database which should be exlude by my databases_query.
Error message:
Trying to understand your code, adding some logging in
python3.5/dist-packages/ldap2pg/inspector.py
Error message output:
The query seems to be the default one defined in the config.py (lines 348-350):
'databases': 'SELECT datname FROM pg_catalog.pg_database\nWHERE datallowconn IS TRUE ORDER BY 1;
Am I missing something here?
Other parameters in the conf file seem to be scraped correctly.
And by the way, why are you doing your own mapping and not using something like: https://pyyaml.org/wiki/PyYAML ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: