473,385 Members | 1,309 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.

IIS / Remoting / SqL Server authorization

I have a custom object host on IIS, windows authentication enabled.

The problem raises when the remote object, invoked by the client, tries to
connect to SQL Server, I get 401 error (Authorization denied).

What do I have to set in order to connect to database?

Jan 5 '07 #1
2 1746
roger_27 wrote:
is it using the login/pass for that sql database ? or are you using windows
authentication ?
Windows authentication.

Jan 5 '07 #2
"Tommaso Caldarola" <il********@lcimitero.itwrote in message
news:45**********@x-privat.org...
>I have a custom object host on IIS, windows authentication enabled.

The problem raises when the remote object, invoked by the client, tries to connect to SQL
Server, I get 401 error (Authorization denied).

What do I have to set in order to connect to database?

Your clients are are authenticated by IIS but SQL sever is one hop too far for NTLM
authentication, this will only work if you enable Kerberos delegation. In order to set-up
this correctly, you need to run in a AD realm, and you need to trust the IIS server machine
for delegation, the users (AD accounts) must also "allow to be delegated" (this is the
default).
Note that above will only work with IE clients and only if Kerberos authentication succeeds,
else your clients may well get authenticated using NTLM and trouble begins again. Another
serious drawback is that this doesn't scale, as each user has different credentials, each
connection with SQL will require a separate SQL connection pool and each logical connect
will result in a new physical connection, which is pretty slow.
Much better option is to authenticate at the IIS server side and apply role based security
in order to access SQL, the asp.net application can connect with SQL using fixed explicit
credentials.

Willy.
Jan 5 '07 #3

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

Similar topics

15
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.