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

Home Posts Topics Members FAQ

NTLM credentials -> query Active Directory -> email address

Given NTLM credentials (domain\username) that can be read from browser
variables by an ASP.Net page, I need to query Active Directory and
extract that user's email address property.

Can someone provide a pointer to how this can be done, preferrably in
VB.Net.

Thanks,

Jim
Nov 18 '05 #1
1 1767
within the framework you'll work with the DirectoryServices
namespace...specifically the DirectorySearcher class library. take a look
at that for some examples on MSDN. you'll have to know the AD schema
variable you are looking for...

-th

"Jim Adams" <ji*******@hotmail.com> wrote in message
news:49**************************@posting.google.c om...
Given NTLM credentials (domain\username) that can be read from browser
variables by an ASP.Net page, I need to query Active Directory and
extract that user's email address property.

Can someone provide a pointer to how this can be done, preferrably in
VB.Net.

Thanks,

Jim

Nov 18 '05 #2

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

Similar topics

0
2201
by: Mario Rodriguez | last post by:
Hi People, I'm try to access an Active Directory using both DirectoryEntry and DirectorySearcher (.NET DirectoryServices) and OLEDB Active Directory, in all cases I'm receiving this error: No...
0
1114
by: Andrew Connell | last post by:
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...
1
1764
by: Tash | last post by:
I am having a weird problem. I am trying to use the following code to query active directory. Function IsExistInAD(ByVal loginName As String) As Boolean Dim userName As String =...
2
5947
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
0
2095
by: J Ames | last post by:
Please, if this is the incorrect forum for this question, let me know which forum is most appropriate. I want to make sure I get visibility with the proper gurus! I have a .NET console app that...
3
4486
by: David Bear | last post by:
Is it possible to use python to make calls agains microsoft active directory? I suppose this should be qualified by what is needed to do it from windows (I assume the win32all package) and from...
3
5765
by: MuZZy | last post by:
Hi, I'm trying to find a way to call a standard ActiveDirectory search dialog from my C# app, so i can pick a domain or computer user an dreturn it to the app. It's a search like one showing...
0
4142
by: justintaitt | last post by:
Hi, I am new to active directory and am trying to query it for the user name and ID of members of a group to populate a drop down list in the form: firstname lastname (userID) When I run the page...
0
2428
by: John Gault | last post by:
I'm in need of some guidance... I want to query Active Directory using a user's alias and want to find all the distribution groups that they are a member of. Are there any examples of doing this?...
0
7198
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
7072
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
7271
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,...
1
6979
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...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4666
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
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
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...

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.