473,503 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Active Directory from ASP.NET

I have a case where I need to be able to query Active Directory to
look up a user by their WINNT:\\DOMAIN\USERACCOUNT. The site is
authenticating the users (it's a CMS site and they must be
authenticated). I have Integrated Authentication & Anon access
checked in IIS. I also have the following in my web.config:
<authentication mode="Windows" />
<identity impersonate="true" />
<trust level="Full" originUrl="" />

However, after building the solution, when I try to create it, I get
the following: "The specified directory service attribute or value
does not exist"

I've copied the lookup code verbatum into a console app and run it
from the same server and it works perfectly (for the same user
lookup)... any ideas why I'm getting this error? It looks security
related, but I'm having a hard time getting the user it's running as
out into my debug info.

Ideas? Thanks in advance.
Nov 18 '05 #1
0 1114

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

Similar topics

9
3690
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
0
1957
by: Oshadha | last post by:
Hi All I'm trying to query and get a list of all reachable computers in a network. I also heard that you can query active directory and find domain pc list. but my need is not to query active...
0
3173
by: khaja shaik | last post by:
Arianne, I have the following code in C Sharp which query the Active Directory to get the user details. But it brings up only 1000 records. Is there any code which can give me all the records from...
4
2023
by: h2so4 | last post by:
I want to write a program that will query an ldap directory. can I use adsi or ado to do that, If yes how ? tx -- h2so4
0
2001
by: dug04 | last post by:
Hi I am trying to write a query that will select all users in the Organization bucket in active directory. The problem is that within the Organization bucket, there are many other buckets. I...
7
16447
by: kooch54 | last post by:
I am trying to write a script to simply query the group members in an active directory group. I need to use LDAP to make sure I capture any global global group nestings that may occur. I already...
2
2651
by: HamishC | last post by:
Hi all, I have been knocking my head against this one for a few days -- haven't been able to find a solution to this anywhere so hopefully someone can help. Situation: A really simple LDAP that...
3
3001
by: =?Utf-8?B?YXppZWdsZXI=?= | last post by:
Hello, everybody. I'd like to do this: For a big program (a web service) I need information about the usergroups an active-directory-user is member of. To be more precise, I need to know if a...
1
2580
by: bobby44 | last post by:
Hi, I hope someone can help with a query I'm stuck on. I think it will involve inner join but I can't get my head around it. I have two tables that relate to venues fr weddings: --...
0
7203
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
7087
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...
0
7334
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...
1
6993
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
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4675
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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 ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.