Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Windows authentication.

 
   Database Help (Home) -> Client RSS
Next:  Two quick questions.  
Author Message
Smith

External


Since: Jan 22, 2008
Posts: 16



(Msg. 1) Posted: Wed Feb 06, 2008 7:48 pm
Post subject: Windows authentication.
Archived from groups: microsoft>public>sqlserver>clients (more info?)

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

 >> Stay informed about: Windows authentication. 
Back to top
Login to vote
Ekrem_Önsoy

External


Since: Jan 11, 2008
Posts: 243



(Msg. 2) Posted: Thu Feb 07, 2008 1:18 pm
Post subject: Re: Windows authentication. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.TakeThisOut@hotmail.co> wrote in message
news:F1D9444A-DE39-418F-AAD0-549F665FAF8D@microsoft.com...
> 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

 >> Stay informed about: Windows authentication. 
Back to top
Login to vote
Duncan McC

External


Since: Feb 07, 2008
Posts: 2



(Msg. 3) Posted: Thu Feb 07, 2008 2:56 pm
Post subject: Re: Windows authentication. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <F1D9444A-DE39-418F-AAD0-549F665FAF8D.TakeThisOut@microsoft.com>,
naissani.TakeThisOut@hotmail.co says...
> 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.

There are various methods your app could use to talk to the db. One eg.
might be ADO. Using that eg. you'll then have an ADO config in Control
Panel, and in there you can set Windows Auth and the database to connect
to.

That's just one eg (using ADO).

--
Duncan
 >> Stay informed about: Windows authentication. 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Client All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]