Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel 2007 Pass-Through Windows Authentication

I've created a simple (asmx) web service which returns a DataSet. I've added the webservice to my Excel 2007 workbook using the Data -> From Web button and I'm able to view / refresh the data.

The problem comes when I need to secure the web service: I've turned on Windows authentication for the web service and the request uses SSL.

Unfortunately, the user's logged on windows credentials aren't used by Excel when trying to refresh the data - the refresh fails.

If I click on Data -> Connections -> Properties -> Definition -> Edit Query, only then am I prompted for my windows credentials and does the refresh then succeed.... not a problem for me, but not something I want every user of this spreadsheet to have to do... any ideas how to make the prompt come up when the refresh is attempted instead of having it fail??

Thanks!!

Update Answers so far are to do with SharePoint and Excel Services (neither of which are any use to me)... and one link for which "The following procedure does not apply to data that is retrieved from a text file or a Web query"... I just want a person with a copy of excel on his desktop machine to be able to update from a password-protected web service... is that so hard Microsoft??

Another Update Still no answers accepted - because no answers so far have provided a working solution ( Nice googling though - thanks guys ;-) )

like image 662
Nathan Avatar asked Sep 28 '11 14:09

Nathan


People also ask

What is used to authenticate the order of the Excel sheet?

SQL Server Authentication requires that Excel Online present a SQL Server user name and password to a SQL Server data source to authenticate. Excel Online passes the connection string to the data source. The connection string must contain the user name and password.

Which method can be used for authentication in Windows 10 operating system?

The Windows operating system implements a default set of authentication protocols, including Kerberos, NTLM, Transport Layer Security/Secure Sockets Layer (TLS/SSL), and Digest, as part of an extensible architecture.

Does Windows authentication use Active Directory?

You can use Windows authentication when your IIS 7 server runs on a corporate network that is using Microsoft Active Directory service domain identities or other Windows accounts to identify users. Because of this, you can use Windows authentication whether or not your server is a member of an Active Directory domain.

How does Windows domain authentication work?

Here's how the authentication process goes:The client requests an authentication ticket from the AD server. The AD server returns the ticket to the client. The client sends this ticket to the Endpoint Server. The Server then returns an acknowledgment of authentication to the client.


Video Answer


2 Answers

While I haven't got SSL I can attest that Excel normally shouldn't ask you for authentication when using pass through authentication.

My guess is that you will need to add the destination website (with the https) to your trusted zone in IE. The effect should be that when you go to the website you shouldn't be challenged for your password at all. IE will now pass through the authentication credentials because the destination is in the trusted zone.

Once this is fixed Excel should treat it like a normal website.

Here's a link which talks you through adding your site to the trusted zone: http://www.nateirwin.net/2007/01/19/enabling-ntlm-authentication-in-firefox-and-internet-explorer/

like image 153
Alex Andronov Avatar answered Oct 02 '22 12:10

Alex Andronov


The last time I dealt with this issue was in 2004. If I remember correctly, this is a bug in the Web Query technology in how the query deals with the SSL certificate. This is Excel 97 technology; therefore, fairly basic implementation.

After much research and troubleshooting, the only way around this issue is to create user and password parameters and post the web query. Using POST will keep the user/password hidden from prying eyes.


Following is my note from 2004: There is a problem with https, application/vnd.ms-excel, Internet Query (iqy), and Excel 2000/2002.


Have you checked out this question: What do I need to do to make Excel access a Web Query via HTTPS?


Excel's Web Queries Enable You to Populate Worksheets from Web Sites at http://msdn.microsoft.com/en-us/library/aa155714(v=office.10).aspx.

Sites requiring authentication and passwords provide additional challenges. They may require coded workarounds or may be unsolvable.

Error message when you use Web query to a secure Web page () in Excel: "Unable to open" at http://support.microsoft.com/kb/290347.

XL97: How to Create Web Query (.iqy) Files at http://support.microsoft.com/kb/157482 is an invaluable resource. (There was a Web Query SDK once that I cannot find, but this article is a good replacement.)

Different Ways of Using Web Queries in Microsoft Office Excel 2003 at .

like image 35
AMissico Avatar answered Oct 02 '22 11:10

AMissico