Re: How can I avoid using SQL Authentication with the Office Web Parts?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: DarrylR (darrylr_at_nospam.com)
Date: 01/31/05


Date: Sun, 30 Jan 2005 22:17:25 -0500

I couldn't wait to test it, so I tried it out today. Here's what I found:

If I log into my machine using one domain user account and then log into the
portal using a different account (by setting User Authentication/Logon for
the Trusted Sites zone in IE to "Prompt for user name and password"), the
Office Web Parts access the database using the credentials of the logged on
user, ignoring any impersonation. Windows SharePoint Services, on the other
hand, uses the credentials that I supply when logging into the portal (as it
should).

I'll keep you posted on my progress.

Regards,
Darryl R.

"DarrylR" <darrylr@nospam.com> wrote in message
news:utu62swBFHA.3596@TK2MSFTNGP12.phx.gbl...
> Ken,
>
> Thanks for the reply and references to suggested reading. Everything that
> I've read suggests that using Basic authentication should have resolved
the
> "Double Hop" issue (as you pointed out). That's the reason that I chose to
> use Basic authentication for extranet users. It obviously isn't working,
> though.
>
> One possible explanation for this is that the Office Web Parts ignore the
> credentials supplied by the user when integrated security is specified in
> the connection string, and use the current Windows user account instead. I
> read some documentation (for Project Server 2003, which uses some Office
Web
> Components and SQL Server Analysis Services) that suggested that if you
want
> to use Basic authentication to implement pass-through security, you must
> also enable Basic authentication for the Remote Data Services ISAPI
Library
> (Msadcs.dll). However, I also read that creating an MSADC virtual
directory
> is frowned upon in Windows Server 2003/IIS 6.0 because it creates a
security
> risk. So let's put this aside for now...
>
> Another thing that leads me to believe that the Office Web Parts ignore
> supplied credentials and use the current Windows user account is the fact
> that the site works for internal users, who hit it from a virtual
directory
> that uses Integrated Windows authentication. I'm surprised that it works
> because according to the NTAuthenticationProviders metabase key (returned
by
> adsutil.vbs), Kerberos is not enabled for that virtual directory; the key
> value is "NTLM", not "Negotiate,NTLM". And even if Kerberos is enabled by
> default when Integrated Windows authentication is used in IIS 6.0
(suggested
> by David Wang in a separate post), I haven't specifically enabled any user
> accounts or computers for delegation or created any Service Principal
Names.
> Therefore, I'm assuming that Kerberos is only partially implemented, and a
> true double-hop should still fail. Yet the Office Web Parts retrieve data
> for internal users.
>
> So when I get in tomorrow, I plan to test my theory by logging into my
> machine using one domain user account and then logging into the portal
using
> a different account. Just to be clear, I'll be logging in from our
intranet,
> so I'll be hitting the virtual directory that uses Integrated Windows
> authentication. I'll use SQL Profiler to determine which credentials are
> used to access the database. My guess is that it will be the credentials
> that I use to log onto my machine. This would suggest that the Office Web
> Parts ignore impersonation.
>
> I'll let you know what I find out.
>
> Regards,
> Darryl R.



Relevant Pages

  • Re: How can I avoid using SQL Authentication with the Office Web Parts?
    ... If I log into my machine using one domain user account and then log into the ... Office Web Parts access the database using the credentials of the logged on ... > use Basic authentication for extranet users. ... > that uses Integrated Windows authentication. ...
    (microsoft.public.inetserver.iis)
  • Re: How can I avoid using SQL Authentication with the Office Web Parts?
    ... If I log into my machine using one domain user account and then log into the ... Office Web Parts access the database using the credentials of the logged on ... > use Basic authentication for extranet users. ... > that uses Integrated Windows authentication. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: How can I avoid using SQL Authentication with the Office Web Parts?
    ... If I log into my machine using one domain user account and then log into the ... Office Web Parts access the database using the credentials of the logged on ... > use Basic authentication for extranet users. ... > that uses Integrated Windows authentication. ...
    (microsoft.public.inetserver.iis.security)
  • Re: How can I avoid using SQL Authentication with the Office Web Parts?
    ... If I log into my machine using one domain user account and then log into the ... Office Web Parts access the database using the credentials of the logged on ... > use Basic authentication for extranet users. ... > that uses Integrated Windows authentication. ...
    (microsoft.public.office.developer.web.components)
  • Re: How do you wintrolls...
    ... you have set up your user account on each computer. ... To people with that user's credentials, ... Automatically trying to log into a remote machine with the local ... username and password doesn't make a lot of sense on a home network. ...
    (comp.sys.mac.advocacy)