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

If no user name (or auth config) is chosen, we fill up the user name … #972

Merged
merged 6 commits into from
Nov 4, 2024

Conversation

signedav
Copy link
Member

@signedav signedav commented Oct 28, 2024

But not always. The layer should not be created with it (and have instead no user name). Such functionalities are provided by the PG Kerberos integration.

Backend here opengisch/QgisModelBakerLibrary#114

We need to pass it:

  • in ili2db commands (import, validation etc.)
  • in generate project (but don't save it in layer sources)
  • on direct connections (basket manager, oid manager)

ili2db commands

If no user name available just set the account user name.

generate project

Pass the account user name (the account name) to the library when it needs to connect the db, but not on creating the layers (means only on mgmt_uri)

direct connections

Provided over the db_utils.get_db_connector

@signedav signedav marked this pull request as ready for review October 29, 2024 13:14
Copy link
Collaborator

@gacarrillor gacarrillor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
(I haven't tested it, though)

@signedav signedav merged commit 67392c1 into master Nov 4, 2024
7 checks passed
@signedav signedav deleted the account-username branch November 4, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants