Re: Intranet connect to SQLServer Under user's account.
From: Fred (fred.boistuaud@dorsetsoftware.com)
Date: 01/16/03
- Next message: David Braun: "Re: Using both Forms and Windows Security..."
- Previous message: Wim Brosens: "How can I get the current AuthenticationMode of an ASP.NET Application ?"
- In reply to: 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: Thu, 16 Jan 2003 09:46:08 -0000
This did not work.
But thanks anyway.
Fred.
"Erik Porter [.NET MVP]" <erikporter@mvps.org> wrote in message
news:#cejR3KvCHA.616@TK2MSFTNGP11...
> Not sure if this is the fix that will do it, but trying changing the
> authorization to this...
>
> <authorization>
> <deny users="?" />
> <allow users="*" />
> </authorization>
>
> Also, I believe you'll have to setup a group in SQL Server to accept
> everyone from your domain.
>
> Erik Porter
> Microsoft .NET MVP
>
> "Fred" <fred.boistuaud@dorsetsoftware.com> wrote in message
> news:uadzjjIvCHA.2476@TK2MSFTNGP10...
> > 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: David Braun: "Re: Using both Forms and Windows Security..."
- Previous message: Wim Brosens: "How can I get the current AuthenticationMode of an ASP.NET Application ?"
- In reply to: Erik Porter [.NET MVP]: "Re: Intranet connect to SQLServer Under user's account."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|