473,714 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NT Authentication not getting passed to business objects

Hello, we have an ASP.NET website which uses NT authentication to
authenticate against an AD server.

We then have a set of business objects which are used to store /
retrieve information into database tables.

The business objects retrieve the connection string from the
web.config and use Integrated Security to connect to the database

e.g our connection string looks like the following

Data Source=MSSQLSER VER;Initial Catalog=Databas eName;Integrate d
Security=True

The problem we are having is that the business object is not
inheriting the NT login/ password from the logged in user but tries to
run as the local account. As such the database login fails.

Any ideas welcome
Thanks
Adam

Nov 14 '07 #1
1 1591
<ad*********@gm ail.comwrote in message
news:11******** **************@ i13g2000prf.goo glegroups.com.. .
Hello, we have an ASP.NET website which uses NT authentication to
authenticate against an AD server.

We then have a set of business objects which are used to store /
retrieve information into database tables.

The business objects retrieve the connection string from the
web.config and use Integrated Security to connect to the database

e.g our connection string looks like the following

Data Source=MSSQLSER VER;Initial Catalog=Databas eName;Integrate d
Security=True

The problem we are having is that the business object is not
inheriting the NT login/ password from the logged in user but tries to
run as the local account. As such the database login fails.

Any ideas welcome
Thanks
Adam

This works only when you have set-up Kerberos Authentication, which implies
:
- that you are running in a pure Kerberos realm, that is, you must be sure
Kerberos is used as Authentication protocol, NTLM will no do.
- that you have set the Webserver (IIS Server) as being trusted for
delegation
- that your clients are all running IE and all have "Windows Authentication"
enabled.
- and that you have correctly registered a SPN for SQL Server.

Note that it makes no sense to authenticate against an AD , authentication
will be done implicitly in such a scenario .
Note also that this way you throw away the advantages offered by "Connection
Pooling", each client uses it's own non-pooled physical connection.
Please consult SQL BOL for details on How to Enable Kerberos Authentication
for SQL Server (SQL2000 SP3 and up).

Willy.
Nov 14 '07 #2

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

Similar topics

8
1971
by: tcg_gilbert | last post by:
I'm developing a web application for our local intranet that will allow users to pull up a webpage and update or deleted or insert records into a database as well as run reports etc... Our DB server is on a Win2k3 OS using SQL Server 2000 Our Web server is on a separate Win2kr OS using IIS 6 Both the servers and the clients are part of the same domain. We've turned anonymous access off on the web and are passing the integrated...
40
7581
by: webrod | last post by:
Dear All, let's say I have a web service. I would like to authenticate users who try to access it. I am on a winnt server so I will have to use NTLM but I don't want to use IIS settings. Is there a way to authenticate a user using WSE 3.0 against NTLM?? All the samples I have found on the web provide a solution based on
3
15033
by: Mudcat | last post by:
I am not that familiar with Crystal Reports, but having read some other posts I know that the way to integrate the API with Python is through the COM interface provide by win32all. However, I have been unable to find any other information on how to get started. I've used the COM interface before in integrating Excel and a couple of other things. So I am familiar with how that works. But there are at least 40 options dealing with Crystal...
2
226
by: =?Utf-8?B?VW1lc2huYXRo?= | last post by:
I have a aspx login page after the user logins (with correct userid pwd), application allows user to go any other aspx page. If any user try to access a aspx page directly, it redirect to login page. Now I am implementing the scenario with session objects. Is there any alternative way for doing this, I mean using config file. I am expecting a solution for this. Also my users available in a data base, table called user master. Thanks in...
0
8701
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9168
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9068
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9009
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4715
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2103
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.