Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 2nd, 2005, 05:07 AM
Nemisis Nemisis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 4 Nemisis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 18 m 18 sec
Reputation Power: 0
Exclamation Authentication

Hi everyone,

I have a SQL database and web application. Many people can access the application via a username and password. Depending on the username and password, depends on the database they can access.

At the moment i am using SQL Authentication, but after reading many articles i am wondering whether to use Windows Authentication, but not sure if i can use it or how to set it up.

Can anyone help?? If you need some more info, please ask.

Thanks

Reply With Quote
  #2  
Old August 2nd, 2005, 01:14 PM
blicci's Avatar
blicci blicci is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Philly
Posts: 351 blicci User rank is Sergeant Major (2000 - 5000 Reputation Level)blicci User rank is Sergeant Major (2000 - 5000 Reputation Level)blicci User rank is Sergeant Major (2000 - 5000 Reputation Level)blicci User rank is Sergeant Major (2000 - 5000 Reputation Level)blicci User rank is Sergeant Major (2000 - 5000 Reputation Level)blicci User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 22 h 8 m 5 sec
Reputation Power: 52
You can use windows authentication. You have to turn the anonymous login off in IIS for the web application that will be accessing you database. When windows authentication is used on the website, when the database is accessed it will attempt to use the current clients login credentials. If you are using asp.net in your web.config file add these two lines
<authenticationmode="Windows"/>
'This tells the application to authenticate using windows
<identityimpersonate="true"/>
' this tells that application to impersonate the current user when accessing resources such as file shares and databases

By using windows authentication it isn't necessary to place usernames and passwords in your connection string anymore. Also you can set up groups in active directory that have rights to your database. So if anyone needs access you just add them to the group.


Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Authentication


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT