Re: Office Web Parts connecting to SQL Server from extranet

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


Date: Fri, 28 Jan 2005 00:29:42 -0500

Just to be clear, we're already using the <identity impersonate="true">
element in web.config.

And everything works
a) if we use SQL Authentication in the connection strings or
b) if you access the portal from within our network (from a machine behind
the firewall)

Thanks,
Darryl R.

"DarrylR" <darrylr@nospam.com> wrote in message
news:OuGbojPBFHA.3592@TK2MSFTNGP09.phx.gbl...
> I am using Office Web Parts (specifically the PivotView) on several Web
Part
> pages. The IIS virtual directory serving the pages uses basic security
over
> SSL. The pages with Office Web Parts on them work correctly when accessed
> via our intranet; users are logged on seamlessly using their domain
> credentials, and the PivotView parts retrieve data from our SQL Server
> database and display it in the page. However, when we access these pages
via
> our extranet, even if the user logs in using their domain credentials, the
> Office Web Parts fail to retrieve data because of a SQL login failure
> ("Login failed for user '(null)'. Reason: Not associated with a trusted
SQL
> Server connection."). All other pages on the portal are displayed
correctly
> from the extranet.
> The IIS box (running WSS) is outside our firewall, and the SQL Server box
is
> behind our firewall. The machines are on different domains with a one-way
> trust relationship (the extranet domain trust accounts from our intranet
> domain). We've opened the generally accepted ports on the firewall to
> support SQL Server (at least we know that WSS is able to access the SQL
> Server box to deliver all other portal content). Using connection strings
> similar to the following, the Office Web Parts fail to login (when the
pages
> are accessed from the extranet):
>
> Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
> Info=False;Initial Catalog=ourDB;Data Source=ourSQLserver;
> Provider=SQLOLEDB.1;Trusted_Connection=Yes;Persist Security
> Info=False;Initial Catalog=ourDB;Data Source=ourSQLserver;
>
> So far, the only way that we've been able to get this to work from the
> extranet has been to use SQL Authentication and a connection string
similar
> to the following:
>
> Provider=SQLOLEDB.1;Persist Security Info=True;User
> Id=ourUserId;Password=ourPwd;Initial Catalog=ourDB;Data
Source=ourSQLserver;
>
> Obviously, we'd rather not use SQL Authentication, since the connection
> string is written to the page, where it is readable in the browser using
the
> View/Source command. I researched the problem and discovered the following
> article (among others) which looked promising:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskaccessingsqlserverusingmappedwindowsdomainuser.asp
>
> However, the steps outlined in the article didn't correct the problem. I
> also read the following article which suggested that we may need to open
> more outbound ports on the firewall to make this work:
>
> http://support.microsoft.com/kb/287932
>
> I've also seen references to Kerberos authentication that suggest that it
> could solve the problem. However, rather than plow blindly ahead, I
thought
> I'd seek input.
>
> Any suggestions?
>
>



Relevant Pages

  • Re: Office Web Parts connecting to SQL Server from extranet
    ... and the PivotView parts retrieve data from our SQL Server ... > our extranet, even if the user logs in using their domain credentials, the ... Using connection strings ... > extranet has been to use SQL Authentication and a connection string ...
    (microsoft.public.office.developer.web.components)
  • Re: Office Web Parts connecting to SQL Server from extranet
    ... and the PivotView parts retrieve data from our SQL Server ... > our extranet, even if the user logs in using their domain credentials, the ... Using connection strings ... > extranet has been to use SQL Authentication and a connection string ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Cant connect to SQL (ASPNET account)
    ... Are you intending to use integrated security or a SQLS login? ... connection strings which are unclear. ... The SQL server is on my webserver running ...
    (microsoft.public.sqlserver.security)
  • ASP.NET Forms Authentication Via A SQL Server Database With Windows User types?
    ... I would recommend not creating connection strings per ... the Intranet using SQL ... not as a Standard SQL user type. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: crash on virtual dimensions
    ... SQL authentication doesn't work for SQL Server to anywhere. ... It is basically a way for access developers to start writing all of their ...
    (microsoft.public.sqlserver.olap)