dbTalk Databases Forums  

Authentication issue

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Authentication issue in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M K
 
Posts: n/a

Default Authentication issue - 05-09-2007 , 07:21 AM






Ok a newbie here...

i have a sql server db I got from a book to learn. I am having problems
with the 'Authentication' mode.

I need a valid id to be authenticated with...

i have a web config file but I am not sure what goes where?

name of server
MKLAPTOP\VAIO_VEDB

connection
MKLAPTOP\Mark

i have both sql and windows authentication selected

heres the web.config
<configuration>

<appSettings>

<add key="constring"

value="Server=MKLAPTOP\VAIO_VEDB;UID=MKLAPTOP\Mark ;PWD=IPutWindowsPWHere;Database=AspNetJobs"
/>

</appSettings>

<system.web>

<compilation debug="true"/>

<authentication mode="Forms" >

<forms name=".ASPNETJOBS"

loginUrl="~/site/password/login.aspx" />

</authentication>

</system.web>

</configuration>

Is there anything else i need to check/change etc.. please keep in mind I am
in learning mode so a good explination would be very helpful...

Thanks in advance,
Mark



Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Authentication issue - 05-09-2007 , 05:16 PM






M K (ski_freak (AT) earthlink (DOT) net) writes:
Quote:
Ok a newbie here...

i have a sql server db I got from a book to learn. I am having problems
with the 'Authentication' mode.

I need a valid id to be authenticated with...

i have a web config file but I am not sure what goes where?

name of server
MKLAPTOP\VAIO_VEDB

connection
MKLAPTOP\Mark

i have both sql and windows authentication selected
...
value="Server=MKLAPTOP\VAIO_VEDB;UID=MKLAPTOP\Mark ;PWD=IPutWindowsPWHere;Database=AspNetJobs"
This won't fly. When you specify UID and PWD, those are user ids and
password for SQL logins, and they don't contain backslashes. To log in
with your Windows login, simply specify "Trusted_connection=Yes" or
"Integrated Security=SSPI". Or nothing at all, since Windows authentication
is the default. But you should include UID and PWD, unless you want to
use SQL authentication.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


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.