How to get and use token from Identity using Windows Authentication to connect to SQL 2005 from ASP.NET 2.0

The web server and SQL server are on 2 different servers in the same domain.  It may be the same server when the files get pushed to production.  I have set up IIS to use Integrated Windows Authentication only.  In my web.config file I have the following settings..
    <add name="ConnectionStringName" connectionString="Data Source=Servername;Initial Catalog=Databasename;Integrated Security=SSPI"
      providerName="System.Data.SqlClient" />
 <authentication mode="Windows" />
           <allow users="*"/>
           <deny users="?"/>
        <identity impersonate='true'/>

In SQL there is a group of logins setup with Windows Authentication.
When I go to the application, a Windows Authentication Login pops up and I enter in my information.  First, is there a way to bypass the pop up since I'm already logged in...Second after I log in successfully, I receive the following error.  Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.   How do I access the token from the identity to be used to connect to SQL Server  Also, Kerberos is not an option.  Please be step by step descriptive.  Thanks!

1/28/2009 4:35:46 PM 27051 articles. 1 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 45


Similar Artilces:

How to get new web app to use .NET 2.0 on Win2K server using .NET 1.1 as default framework?
I have .net framework1.1 and 2.0 on our server running win2K. i have existing applications that uses 1.1, i also have a new app that use 2.0.  how can i set my new .NET 2.0 app to point to 2.0 without messing up my existing .NET 1.1 apps? To specify the ASP .Net version fro a web application, do the followingIn IIS Manager select the web application -> Properties -> ASP.Net TabSelect  ASP.Net version you want to use for the applicationRegards,PrashantDont forget to click "Mark as Answer" on the post that helped you. But I am running Win2K...

How to connect PB .NET Web Forms to MS SQL 2005 via SNC using "Windows Authentication"?
Dear All, I have a PowerBuilder native client / server application which connects fine to the Microsoft SQL Server 2005 back-end database via the SNC native driver using "Windows Authentication" (NOT "SQL Server Authentication"). The corresponding program code being used is as shown below: ///////////////////////////////////////////////////////////////////////////////////////////////////////// String ls_userid, ls_password ls_userid = sle_id.Text ls_password = sle_password.Text IF Len(ls_userid) <> 0 AND Len(ls_password) <> 0 THEN // Pro...

.Net 2.0 Web application using is unable to create object of another dll writen in C# .net 2.0
Hi, I habe created one web application using which is adding reference of dlls written in C# and .net 2.0. But whenever trying to create object of referencing dll, it is throwing error :Object reference does not set to an object. But, locally it is working fine,. In the server i have deployed the .aspx files and dll files in the bin. There were already an web.config in the server which is of .net 1.1. But checked it is retrieving value for that web.config correctly. Should i have to deply any other files and if not what can be the solution for this? Please help. Thanks, So...

Using Windows Authentication .NET 2.0
Hi - We developed and application that uses Windows Authentication with .NET 2.0. Of course it was developed on a developers machine and then deployed to our server environment, which is different that the developers. Our environment is set up like this: web server (IIS) has the application and .NET 2.0 framework on it. Database server is a seperate machine and is running SQL Server 2005. I have read all of the Microsoft articles about how to make this work, but I can't seem to get the configuration right. I have set up Domain\WebServer$ as a user in our database. I have configured w...

Create module using .NET ver 2.0 and use with DNN 2.1.2
Hi all, i would like to start to test the .NET 2.0 version of the framework ad i would like to know is there some problem if i write a module with the 2.0 version of .NET and use with DNN 2.1.2. Thanks Stefano...

Using ADO to connect to SQL Server 2005 or 2008 (Express and standard) using Windows Authentication
Hi, I apologize in advance if this is an overly simple question or I have simply overlooked the obvious. With the current project (it's client server not n-tier) I'm on, we usually connect using SQL Server authentication. We now have a customer that would like to us to connect to SQL server using Windows Authentication. The customer would like to control all access to SQL server using Active Directory rather than us having the username and password on the client side connecting via SQL Server Authentication. The app is still in D5 (don't ask ;) ), with all t...

Using forms authentication
HiI am writing an internet application that requires forms authentication to login remote usersI also want to connect to sql server using windows authenticationThe question is can Ido this?I thought if I allow IIS anonymous access, create an actual windows account to use for the anonymous access then in web.config, set impersonate = true and authentication mode = formsWill this work Many thanks Windows authentication is not delegatable unless you set up your configuration to use Kerberos.Setting up the anonymous account as a domain account with access to the database and impersonating this...

Error with using .Net 3.0 instead of .Net 2.0
Hi,  I have recently made a website in microsoft visual web developer 2005.  When I have uploaded my site to my host I am having trouble.  when I visit the page I get an error message.  My web hosting company does not support .net 3.0 but instead use .net 2.0.  My website is made with file extensions .aspx.  I am usure how to tell what version of .net I am using and wether this is the only cause.  At first there was a 403 error occuring. Help would be much appreciated as I have been struggling with this for some time. The version...

Using forms authentication but connect to sql server using windows authentication
HiI want to use forms authentication to login to my internet application, but I want to connect to sql server 2000 using windows authentication ( via impersonation of a single windows domain account ) ( Windows 2000 server )Both web server and sql server are running on different machinesCan you tell me the configurations I need to do to allow thisThanks timoth by default the ASP.Net will try to connect with your SQl Server using ASP.Net Services Account. If you are not using a Domain Account for ASp.Net service then you can use Mirrored account i.e. create a local account with same name an...

PB 10.2.0 Connect SQL Server Using ADO.NET Provider
I have a problem with connection to SQL Server database using ADO.NET after upgrading to PB10.2.0 build 8011 runtime on the client machine. But it worked fine in version 10.0.1 build 6044 . Anyone can help me to figure ot that problem? TIA. John Ho. Can you try to provide details of the problem? <John Ho> wrote in message >I have a problem with connection to SQL Server database > using ADO.NET after upgrading to PB10.2.0 build 8011 runtime > on the client machine. But it worked fine in version 10.0.1 > build 604...

Oracle database connection using Visual Studio 2005 and .Net 2.0 framework
My connection string is in my web config file, generated when I added a sql data source.  I can go under tools and connect to database and compare the connection string there to the one in web config and they are the same but when I try to view my page which contains a gridview I get a database connection error saying  "Keyword not supported: 'unicode'."  When I remove the unicode=true parameter from the connection string then I get an error message about trying to connect to sql server.  Could someone please give me a clue on how to go about solvin...

ORA-1722 using PB5.0.03 and SQL*NET
Hi there! Does anyone know how we can update a numeric datatype field from a datawindow using PB5.0.03, Oracle 7.3, SQL*Net, Windows 95 on the client side and Windows NT 4.1 on the server side? When we try to change the value of a numeric field, for example from 13 to 12, we get an ORA-1722 when we save the changes back to the database. We have tried the connection parameter disablebind=0 and it works fine, we don't get the error, but we need that parameter set to 1 because we are using stored procedures as data sources for some datawindows in our application. ...

Using .Net 2.0 and System.Web.UI.WebControls.Treeview with SQL Reporting Services 2005 for navigation and display.
I spent several hours sifting through article after article about how to build tree navigations dynamically.  They assumed that the order of the data coming in was 'orderly' and that you were usually using the IE Web Control toolkit which is a .Net 1.0 package.  In our environment 2.0+, that would not work for us and we needed to ensure browser compatibility.  Thanks to a colleagues suggestion of recursion, I came up with the following code below.  It's length is due to all the detailed commenting.  Feel free to comment on it, any positives or...

Implementing Security using WSE 3.0 and .Net 2.0
Greetings,  I've written a ton of webservices in the past but have never touched WSE or applied any turnkey security policies before. I'm looking for a basic tutorial or article that will walk me through setting up security on a web service using WSE 3.0. I've come across several Microsoft articles but they are more overviews rather than step-by-step implementation guides. (

Sending SMS using or using or
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

Web resources about - How to get and use token from Identity using Windows Authentication to connect to SQL 2005 from ASP.NET 2.0 -

Authentication - Wikipedia, the free encyclopedia
Authentication (from Greek : αὐθεντικός authentikos , "real, genuine," from αὐθέντης authentes , "author") is the act of confirming the truth ...

Authentication - Facebook-Entwickler
Please note: On October 3, 2012, the offline_access permission will be removed. If you are building...

Facebook Adds Two Factor Authentication for Login and Redesigns Family Safety Center
... announced the release of several new tools to help users stay safe while using the site. Soon, users will be able to enable two factor authentication ...

Lockdown - A better two-factor authentication experience on the App Store on iTunes
Get Lockdown - A better two-factor authentication experience on the App Store. See screenshots and ratings, and read customer reviews.

YouTube - How To Hack Twitter's New Two Factor Authentication
Veröffentlicht am 23.05.2013 Connect! CEO Josh Alexander wants ...

SafeNet brings Cloud-based authentication service to A/NZ
SafeNet has released its new Cloud-based authentication service, billed as Authentication-as-a-Service, in A/NZ.

Two-factor authentication - cyber security -
Two recent hacking cases highlight how personal emails can impact overall business security through tiny weaknesses.

Digital authentication to become Google's next big focus
Streamlining the website login process a top priority, according to the company’s Australian business and consumer services manager Dan Metcalf. ...

Hands on: Twitter two-factor authentication
Optus and Vodafone customers need not apply when it comes to Twitter's two-factor authentication.

Resources last updated: 12/31/2015 8:46:25 AM