tcWebHooks icon indicating copy to clipboard operation
tcWebHooks copied to clipboard

Support NTLM authentication

Open netwolfuk opened this issue 8 years ago • 7 comments

As per comments in issue #19

netwolfuk avatar May 18 '16 11:05 netwolfuk

You can try this artifact here.

You're welcome to give it a try. I don't have any Windows machines at home (fortunately), so can't test it (unfortunately).

You will need to configure the following:

      <auth enabled="true" type="ntlm" preemptive="true">
        <auth-parameters>
          <param name="password" value="password" />
          <param name="username" value="name" />
          <param name="domain" value="domain" />
          <param name="originator" value="teamcity.internal.company.net" />
        </auth-parameters>
      </auth>

The new magic is here:

netwolfuk avatar May 18 '16 12:05 netwolfuk

Cool, I'll give it a try later this week.

alexvaccaro avatar May 19 '16 08:05 alexvaccaro

Hmm, looks like there will be another release soon ;-) This one is broke. I'll post again here when it's working.

netwolfuk avatar May 19 '16 09:05 netwolfuk

OK, let's try again :-) Download from here

netwolfuk avatar May 19 '16 12:05 netwolfuk

Unfortunately I couldn't get it to work, I see the service call getting 401 responses. I'll try enabling debug logging in TC to see if that sheds any light, but it's not urgent for me so it might take me some time before I try this again.

Many thanks anyway for getting this in :)

alexvaccaro avatar May 20 '16 15:05 alexvaccaro

Sorry about that. If I can figure out a way to do some testing I'll try again, but please do let me know if you can share any insights.

netwolfuk avatar May 20 '16 21:05 netwolfuk

I just pushed support for NTLM. Since we last talked about this, Apache Components HttpClient has added support directly to the client. So I've updated to the latest version and added the required code. Much easier than last time I looked at it.

Can someone reply here if they want to test it? I've not been able to, since I don't have access to any windows machines.

netwolfuk avatar May 30 '20 09:05 netwolfuk