Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

SQLServer login with Trusted Connection thru ASP
We're looking at logging on to SQLServer using Windows Authentication
from an ASP app, and trying to figure out what will work.

The following connection string works with Basic Authentication:
driver={SQL
 Server};SERVER=MyServer;Database=MyDB;Tr
usted_Connection=yes;

Is there a way to do this with IIS security set to Integrated Windows
Authentication?

More:  This is an existing app where currently each user has a database
login.  We want to get away from that.  Another option would be to
create a database user for the app, so we may do that.  Any opinions
welcome.

TIA,
Jim






*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!

Report this thread to moderator Post Follow-up to this message
Old Post
Jim Corey
12-28-04 08:55 PM


Re: SQLServer login with Trusted Connection thru ASP
AFAIK, no, you cannot use integrated authentication and then in turn
use a trusted connection from the IIS server to the SQL Server.  It
has something to do with the non-creation of kerberos tickets and
other sorts of things that I don't fully understand.
http://support.microsoft.com/?kbid=176377

I suggest one single SQL login for the application.  Are there any
concerns with that?  Not that this is the most helpful thing in the
world, but you could always do something like:

sConnectionString = Application("ConnectionString") & ";Application
Name=JimApp accessed by " & Request.ServerVariables("AUTH_USER")

if you're just curious to see who's doing what.

Ray at work

"Jim Corey" <jcorey@nospamcharter.net> wrote in message
news:OtFTV4Q7EHA.1264@TK2MSFTNGP12.phx.gbl...
>
> We're looking at logging on to SQLServer using Windows
Authentication
> from an ASP app, and trying to figure out what will work.
>
> The following connection string works with Basic Authentication:
>   driver={SQL
>  Server};SERVER=MyServer;Database=MyDB;Tr
usted_Connection=yes;
>
> Is there a way to do this with IIS security set to Integrated
Windows
> Authentication?
>
> More:  This is an existing app where currently each user has a
database
> login.  We want to get away from that.  Another option would be to
> create a database user for the app, so we may do that.  Any
opinions
> welcome.
>
> TIA,
> Jim
>
>
>
>
>
>
> *** Sent via Developersdex http://www.examnotes.net ***
> Don't just participate in USENET...get rewarded for it!



Report this thread to moderator Post Follow-up to this message
Old Post
Ray Costanzo [MVP]
12-28-04 08:55 PM


Re: SQLServer login with Trusted Connection thru ASP
Jim Corey wrote:
> We're looking at logging on to SQLServer using Windows Authentication
> from an ASP app, and trying to figure out what will work.
>
> The following connection string works with Basic Authentication:
>   driver={SQL
>  Server};SERVER=MyServer;Database=MyDB;Tr
usted_Connection=yes;
>
> Is there a way to do this with IIS security set to Integrated Windows
> Authentication?
>
> More:  This is an existing app where currently each user has a
> database login.  We want to get away from that.  Another option would
> be to create a database user for the app, so we may do that.  Any
> opinions welcome.
>
> TIA,
> Jim
>
This article should contain all you need to know to do this. Pay attention
and follow the links in the article where relevant:
http://www.aspfaq.com/show.asp?id=2126

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Report this thread to moderator Post Follow-up to this message
Old Post
Bob Barrows [MVP]
12-28-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:19 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.