Intranet connect to SQLServer Under user's account.
From: Fred (fred.boistuaud@dorsetsoftware.com)
Date: 01/15/03
- Next message: wangdo: "access is denied"
- Previous message: Don Kiely: "Re: Data Security of XML Web Services during transfers"
- Next in thread: Erik Porter [.NET MVP]: "Re: Intranet connect to SQLServer Under user's account."
- Reply: Erik Porter [.NET MVP]: "Re: Intranet connect to SQLServer Under user's account."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Fred" <fred.boistuaud@dorsetsoftware.com> Date: Wed, 15 Jan 2003 11:26:18 -0000
Hi there,
I'm trying to set up an intranet where people login under their own windows
account.
I have set up the Web site so that it uses Windows Integrated security, i.e
on the 'authentication methods' screen under ISS, 'Integrated Windows
authentication' is the only selected option.
I also have the following settings in my web.config file:
<authentication mode="Windows" />
<identity impersonate="true" />
<customErrors mode="Off" />
<authorization>
<allow users="*" />
</authorization>
To connect to SQLServer I use a connection string as follow:
'server=DSDEV1\SQL2000; database=Intranet; Trusted_Connection=yes'.
On a test webpage I can output the user account being used:
User.Identity.IsAuthenticated returns true,
User.Identity.AuthenticationType returns 'Negotiate'
and User.Identity.Name returns my 'MyDomainName\MyUserName'
>From visual Interdev I can run the app in debug or release mode, and
everything is OK.
Now I want other people to connect to ISS on my machine, and connect to
SQLServer using their account.
The 'User' object does return the information I expect, but I keep on
getting an error like: 'Login failed for user 'NT AUTHORITY\ANONYMOUS
LOGON'.', when trying to connect to SQLServer.
Can anyone tell what's wrong?
Thanks
Fred
- Next message: wangdo: "access is denied"
- Previous message: Don Kiely: "Re: Data Security of XML Web Services during transfers"
- Next in thread: Erik Porter [.NET MVP]: "Re: Intranet connect to SQLServer Under user's account."
- Reply: Erik Porter [.NET MVP]: "Re: Intranet connect to SQLServer Under user's account."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|