473,385 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

SQLServer Auth Methods

In asp.net 1.1 what are the best ways to connect to sql server? I know that
putting a password and a user ID in the connection string, in the web config
is probably not the most secure. What about authorizing aspnet to access
the database? then there is no need for password and uid.

What about having the UID/Password in code in the global.asax.vb module -
then it would not be as visible as it is in the WebConfig.

I know we can encrypt the connectionstring in 2.0 but I don't think that's
possible in 1.1.

Thanks,
Tina
Jan 1 '07 #1
2 836
"Tina" <Ti**********@nospamexcite.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
I know that putting a password and a user ID in the connection string in
the web config is probably not the most secure.
There's an argument for saying that if your security is so awful that
unauthorised people are able to read your web.config, then its contents
really are the least of your worries... :-)
What about authorizing aspnet to access the database? then there is no
need for password and uid.
If you're talking about integrated security, that's correct.
What about having the UID/Password in code in the global.asax.vb module -
then it would not be as visible as it is in the WebConfig.
Again, if your code is visible, you really need to seek professional
advice...
I know we can encrypt the connectionstring in 2.0 but I don't think that's
possible in 1.1.
Why not? Cryptography has been built into .NET since v1.0...
Jan 1 '07 #2
If you are in position to setup integrated security, it is a good choice. By
"in position" I mean an ability to control the database server to get it to
accept windows logins from asp.net and to setup database access rights.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Tina" <Ti**********@nospamexcite.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
In asp.net 1.1 what are the best ways to connect to sql server? I know
that putting a password and a user ID in the connection string, in the web
config is probably not the most secure. What about authorizing aspnet to
access the database? then there is no need for password and uid.

What about having the UID/Password in code in the global.asax.vb module -
then it would not be as visible as it is in the WebConfig.

I know we can encrypt the connectionstring in 2.0 but I don't think that's
possible in 1.1.

Thanks,
Tina

Jan 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jsWalter | last post by:
I have an extension Class to Auth and I'm looking for some folks to hammer on it a bit and give feed back. Class: AuthUser - add user (well, Auth does that now, so its gone) - remove user...
3
by: John Reese | last post by:
Hello there. I've run into some missing functionality with HTTP Digest authentication in the 2.3 library and I was wondering if I'm just missing something. Missing functionality the first:...
14
by: Roy Gourgi | last post by:
Hi, I need to store and retrieve information from a database. It looks as though there is a lot more support for SQLServer than there is for Access, correct me if I am wrong. What do I have...
1
by: quique | last post by:
Hi all, I want to know the advantages and disadvantages of the methods of maintain session state, obviously if i choose sqlserver is the most robust but the less performace.. If wan't to...
4
by: John Q. Smith | last post by:
I'm trying to find out some of the details behind OOP state management with SQL Server. For instance - how long does the session object live on any server? Is it created and destoyed with each...
6
by: Patrick Olurotimi Ige | last post by:
I have a Forms Auth and use a button that allows users to SignOut below but when they sign out and PRESS THE BACK BUTTON they can see the previous page WHY? Sub SignOut(objSender As Object,...
13
by: Perecli Manole | last post by:
In the forms authentication construct, I need a way to prevent ticket IssueDate and Expiration from being updated for a specific page only. By default forms authentication updates these two values...
2
by: dgk | last post by:
I'm using the standard provider for membership which is SQLServer Express. After deploying the app to our server, login fails because of an SQL problem. I'm guessing that the problem is that the...
0
by: kevin bailey | last post by:
I have a framework working where I have multiple pages each checking the authentication status. Unauthorised users are redirected to a login page - otherwise the requested page is shown. ...
0
by: TheMaxx | last post by:
I need to access ODBC from remote computer, if there's a better way other than WebService please let me know. So, i am doing web service which connects on ODBC, which connects to SqlServer 2000...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.