-
Notifications
You must be signed in to change notification settings - Fork 12
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
Setting use ntlmv2 = yes
within ctds
#27
Comments
Digging around a bit this should be possible with |
Does this branch work for you? |
@joshuahlang Cheers, that patch is along the lines of what I had hacked together. There seems to be an underlying issue with FreeTDS here - it doesn't like connecting when I build with the latest stable freetds. I'll dig around some more. |
Leaving a few notes here. Confirm connectivity
FreeTDSBuildingUsing
Trying to connect without ntlmv2
Trying to connect with ntlmv2Modify /usr/local/etc/freetds.conf to include
FreeTDS all good. ctds
Removing usentlmv2 config entry
Now with
ConclusionThis is the same issue I had when I was hacking around. |
Comparing TDSDUMP logs for the last two scenarios shows that it's definitely not registering the ntlmv2 instruction. Setting this in config causes it to send a whole lot of additional info in the "challenge" packet. |
I believe this was fixed in FreeTDS here: FreeTDS/freetds@3e11437 Doesn't appear that change has been merged to the stable (Branch-1_00) branch yet |
Building FreeTDS from snapshot instead of stable, I'm unable to establish connection with tsql at all. I'll try stable and patching in just the commit you mention.
|
Building FreeTDS stable with Are you planning to merge your ntlmv2 branch into master given this issue? I'll build my wheels based on this branch for now :) |
Yeah I'll merge it in and hopefully get an official release out in the next day or so. |
Fixed in v1.8.0. |
We have some SQL Servers that require configuring FreeTDS via
freetds.conf
touse ntlmv2 = yes
. This appears to be supported in ODBC connection strings for FreeTDS as well.Is there a way to achieve this programmatically with ctds (without the configuration file)?
The text was updated successfully, but these errors were encountered: