dbTalk Databases Forums  

Windows authentication.

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Windows authentication. in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Ekrem Önsoy
 
Posts: n/a

Default Re: Windows authentication. - 02-07-2008 , 05:18 AM






Hi Smith,

I guess your application is an ASP.Net application as it uses a webconfig
file? If so, Windows Authentication may not work for you in this case
because when you use the Windows Authentication as the authentication mode
for your SQL Server, (I don't know where you host your web application but I
assume it's going to be hosted by a hosting company) your web application
will try to connect to your SQL Server with a not trusted user account which
will needed to be authenticated by the AD or something. And as it's a not
trusted user, it'll fail.

In such cases you should use SQL Authentication. And your connection string
would be something like "data source=localhost; initial catalog=mydb;
uid=testuser; pwd=****"

Windows Authentication is very useful in domain environments where there is
trust relationship between clients and server and your clients are members
of domain.

--
Ekrem Önsoy


"Smith" <naissani (AT) hotmail (DOT) co> wrote

Quote:
Dear professional.

I would appreciate if anyone can reply me about this. As my understanding
and microsoft also recommend that always use Windows authentication mode
for security. Can anybody let me know if I use windows authentication mode
then how application and database connect each other, is there any buildin
machine level user or how to mention in my webconfig file to connect to
database and what if I want to connect my database from client side, which
userid should I provide to connect as I am using windows authenciation
mode. In mixed mode we can create couple of uses and use that users to
connect to sql server (query analyzer). What I have to use in Windows
authentication mode and Both client and server are not in same Domain or
may be both are on workgroup.

Please advice.

Thanks


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.