Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      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: 267



(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" wrote in message

> 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 ,
naissani.RemoveThis@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:   
Related Topics:
Deploying SQLDMO on different language Windows. - The localised resource files (.RLL) are held in binn\resources\1033 I'm aware that 1033 is US-English, but if I deploy SQL_DMO on say a French or German box, will this still work? Documentation on deploying on a different language box is horrendous! ...

OLEDB: Prepared cmd with NULL input param for NOT NULL INT.. - Provider: SQLOLEDB Version: SQL Server 2000 8.00.760 Script for creating table: CREATE TABLE [dbo].[ADRVERTRETER] ( <font color=purple> ; [ROWID] [timestamp] NULL ,</font> <font color=purple> ; [ROWVERTRETER] [int] NO...

[MS Design Tools] - Class not registered.&quot; - On a Windows 2000 pro workstation I am using SQL 2000 enterprise manager I am trying to return all rows, I get the error message "An unexpected error happened during this operation. [MS Design Tools] - Class not registered." I have reinstall...

Need help choosing front end for SQL Server - I've been working on an Access 97 database that's pretty much reached it's limit in terms of performance and reliability. Although it supports relatively few users (5-10 concurrent) it contains a lot of data (around 30 tables, some with several million..

SQL server tables read-only to ADP - I have successfully migrated an Access 2003 database to SQL server - at least all the tables and queries that resolve into views migrated successfully. I also sucessfully migrated all my forms and code into an ADP project. Everything works with one..
   Database Help (Home) -> Client All times are: Pacific Time (US & Canada)
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 ]