473,396 Members | 1,864 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,396 software developers and data experts.

ASP.NET and integrated Authentication

Dear All,

I developed asp.net application that using integrated security, i'm getting
the logged on username from "User.Identity.name" and using directoryservices
namespace to get the user information from the domain, the problem now that
when i start the machine or restart iis and try to access my web application
through any remote machine i get errors, but if i restarted the iis and
opened the web application locally "using the localhost alias" the web
application opens fine then all the users over the network can open the web
application, however i think it's releated to the account that being used to
access the active directory to retrieve the information.

is any one faced this problem ?!

Regards,
Mohamed
Nov 18 '05 #1
2 1479
I had an issue with this once. Here's what I had to to (warning, this might
cause a headache wor your network admins).

I had to have a domain account created that is used for nothing except for
AD lookups. This account has no privelidges to any network resources. The
username/password was placed, encrypted, inside of the web.config file.
Then that account name/password was used when performed LDAP queries.

Depending on how retentive your security people are, they might balk at
this. I ended up having to to a presentation on the reasoning behind this,
and explain the encryption techniques we were using for the AD credentials,
but they were persuaded. We've since encapsulated the query inside of a
WebService and now leverage this lookup in a number of web applications.

"Mohamed Zaki" <m_*********@link.net> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Dear All,

I developed asp.net application that using integrated security, i'm getting the logged on username from "User.Identity.name" and using directoryservices namespace to get the user information from the domain, the problem now that when i start the machine or restart iis and try to access my web application through any remote machine i get errors, but if i restarted the iis and
opened the web application locally "using the localhost alias" the web
application opens fine then all the users over the network can open the web application, however i think it's releated to the account that being used to access the active directory to retrieve the information.

is any one faced this problem ?!

Regards,
Mohamed

Nov 18 '05 #2
Hi Mohamed:

Are you using impersonation? There is a one-hop limit for the
credentials when using impersonation unless you enable kerberos
delegation. The credentials make one hop from the browser to a remote
web server, then the web server cannot make a second hop with those
credentials to the AD server. You might consider running the web
application uinder a domain account instead of the local ASPNET
account.

--
Scott
http://www.OdeToCode.com

On Mon, 23 Aug 2004 11:01:06 +0300, "Mohamed Zaki"
<m_*********@link.net> wrote:
Dear All,

I developed asp.net application that using integrated security, i'm getting
the logged on username from "User.Identity.name" and using directoryservices
namespace to get the user information from the domain, the problem now that
when i start the machine or restart iis and try to access my web application
through any remote machine i get errors, but if i restarted the iis and
opened the web application locally "using the localhost alias" the web
application opens fine then all the users over the network can open the web
application, however i think it's releated to the account that being used to
access the active directory to retrieve the information.

is any one faced this problem ?!

Regards,
Mohamed


Nov 18 '05 #3

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

Similar topics

8
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...
4
by: Ravikanth[MVP] | last post by:
Hi It is possible that IIS and SQL Server can reside on Seperate Machines and you can use Integrated Windows Authentication to connect. Ravikanth >-----Original Message-----
9
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
3
by: Patrick.O.Ige | last post by:
Hi folks, How can i pass credentials to windows integrated authentication. I want to use my credentials from windows authentication and pass it on to different asp.net and asp pages without having...
5
by: cdlipfert | last post by:
Our intranet is running under windows integrated security. We have domain users that want to access our intranet site via ssl vpn. SSL VPN can not authenticate against services that run under...
2
by: Amedee Van Gasse | last post by:
Hello, Since it is the first time I'm posting in these groups, I believe a (short) introduction of myself would not be a bad thing. I am mainly a support engineer, not a programmer. I do have...
2
by: Dariusz Tomon | last post by:
I got an ASPNET C# project from client. When I'm trying to open it in Visual Studio I get error message: "Unable to start debugging on the web server. Debugging failed because integrated Windows...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
11
by: benoitc | last post by:
I've been having a problem debugging an ASP.NET 1.1 application on an existing Windows XP/Visual Studio 2003 workstation that I've inherited from somebody else. The application builds fine, but...
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.