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

Add example: connect using Windows Authentication #446

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

sietse
Copy link
Contributor

@sietse sietse commented Jul 27, 2016

I spent a good while figuring out how to specify the database server
host+instance, and where to specify the Windows Domain and the user.
Solution found here, and confirmed to work with pymssql 2.1.3:
https://groups.google.com/d/msg/pymssql/QDMLTGBNeU0/cncYUrkAJD4J

I spent a good while figuring out how to specify the database server
host+instance, and where to specify the Windows Domain and the user.
Solution found here, and confirmed to work with pymssql 2.1.3:
https://groups.google.com/d/msg/pymssql/QDMLTGBNeU0/cncYUrkAJD4J
@ramiro ramiro merged commit e9be253 into pymssql:master Jul 27, 2016
@ramiro
Copy link
Contributor

ramiro commented Jul 27, 2016

Thanks for your contribution! I've already merged it.

On which platform are you using pymssql?

Would it be useful to you to use integrates auth so there is no need to specify username nor password when calling connect()?

@sietse
Copy link
Contributor Author

sietse commented Jul 31, 2016

Hi ramiro,

Thanks for the merge, that was quick!

I use pymssql on Windows Server 2008.

I ... think that integrated auth would be useful to me? Microsoft SQL Server authentication is not something I know much about, but the Server Manager Studio seems to authenticate without me needing to enter any credentials, so I suppose that it already uses integrated auth. One big advantage: one could then deploy without needing to put the password in a configuration file or environment variable. From where this question? Can I be of assistence, for example by field testing?

(Caveat: my usual environment is Linux and PostgreSQL, so I don't know much of what is possible in Windows or what is desirable.)

Thank you so much for being part of this library's maintenance team, it has been a lot of help to me. :-)

@ramiro
Copy link
Contributor

ramiro commented Jul 31, 2016

@sietse Thanks for your reply.

Maybe you can help us testing changes introduced to the master development branch (what will become pymssql 2.2) in that front (integrates authentication). See #402, #433 and 55e9e8a

If it's possible for you to perform this testing, you can download Wheel files for your Python version+Platform architecture from https://ci.appveyor.com/project/level12/pymssql

Any feedback is helpful and welcome!

shadiakiki1986 pushed a commit to shadiakiki1986/pymssql that referenced this pull request Aug 15, 2017
docs: Add example: connect using Windows Authentication
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