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

ActiveDirectoryServicePrincipal connection string #23

Closed
RudraNirvan opened this issue May 21, 2022 · 2 comments · Fixed by #27
Closed

ActiveDirectoryServicePrincipal connection string #23

RudraNirvan opened this issue May 21, 2022 · 2 comments · Fixed by #27

Comments

@RudraNirvan
Copy link

RudraNirvan commented May 21, 2022

The current set of examples demonstrate how to connect using only two methods:

simple: login/password
MSI token
How does one connect via the Service Principal of an application? I tried the following (and some variations of it) but it did not work:

"server=%s;user id=%s;password=%s;port=%d;database=%s;fedauth=ActiveDirectoryServicePrincipal;"
Shows this error: login error: Login failed for user


Issue cloned from denisenkom#749

@shueybubbles
Copy link
Collaborator

Is this issue saying that the code in your proposed example doesn't work?

@RudraNirvan
Copy link
Author

RudraNirvan commented May 21, 2022

@shueybubbles it actually does work, I was passing the parameters incorrectly. Therefore, created that PR to demonstrate a working example in case someone else wants to try "ActiveDirectoryServicePrincipal".

On that note, since you've renamed all the modules for this fork, I'll probably fork your fork and create new PRs if I don't get a review on denisenkom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants