Re: How to authenticate against a Microsoft SharePoint server using NTLM/Indy 10?

Giganews Newsgroups
Subject: Re: How to authenticate against a Microsoft SharePoint server using NTLM/Indy 10?
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Sun, 31 Jan 2010

"Rasmus Møller Selsmark" <r…@codegroup.dk> wrote in message
news:2CDE7A20B0A1E340r…@codegroup.dk...

> - IdAuthenticationSSPI isn't included in the official Delphi 2010 release,
> and from e.g. https://forums.codegear.com/thread.jspa?threadID=19765 it
> seems that IdAuthenticationNTLM is the "supported" method in Indy 10. And
> SharePoint does return "Proxy-Authenticate: NTLM", so NTLM should be fine
> - We have upgraded to latest version of the Tiburon branch
>
> But we cannot get the Windows authentication to work. If we set username
> and password manually on the TIdHttp object, it works, but we would of
> course like to use integrated Windows authentication, so the user doesn't
> have to provide credentials.

IdAuthenticationSSPI impersonated the user of the calling thread if no
credentials are specifed.  IdAuthenicationNTLM does not does that.  You will
have to use IdAuthenticationSSPI again if you want integrated authentication
to work.

--
Remy Lebeau (TeamB)

Replies

In response to

How to authenticate against a Microsoft SharePoint server using NTLM/Indy 10? posted by Rasmus Møller Selsmark on Wed, 27 Jan 2010