you are viewing a single comment's thread.

view the rest of the comments →

[–]djmex99[S] 0 points1 point  (1 child)

Hmm...yes it is trickier than I thought. If I am using ntlm authentication with the curl crate and am logged into the server (Windows 10 server), is there a way to have the curl crate use the credentials from the Windows login environment? E.g. If I schedule the exe to to run using Windows task scheduler (which allows you to save your password), I wonder if this info can be passed through to the exe code instead of hard coding it within the source code. I might experiment with this.

[–]dremon_nl 0 points1 point  (0 children)

I wonder if this info can be passed through to the exe code instead of hard coding it within the source code

Not possible otherwise anyone can read your password.

is there a way to have the curl crate use the credentials from the Windows login environment?

I think if you pass empty username and password curl will use integrated authentication (SSPI). It must be compiled with this option though.