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

Home Posts Topics Members FAQ

Q: reading active directory

Hello,
How would you read active directory information, username, e-mail, ...
I am using VB in my asp.net and I do not think that we use LDAP, so it
should be WinNT. can anyone give me a code sample?
Thanks,
Jim.

Nov 19 '05 #1
4 1165
Hi Jim, I've not tried this but found an article within the MSDN version
supplied with .Net that has the heading

"Using System.DirectoryServices to Search the ActiveDirectory"

Regards
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
Hello,
How would you read active directory information, username, e-mail, ...
I am using VB in my asp.net and I do not think that we use LDAP, so it
should be WinNT. can anyone give me a code sample?
Thanks,
Jim.

Nov 19 '05 #2
LDAP is just a protocol, which you DO use to query Active Directory. There
are several articles listed on the following page:

http://dotnetjunkies.com/WebLog/darr.../08/35643.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
Hello,
How would you read active directory information, username, e-mail, ...
I am using VB in my asp.net and I do not think that we use LDAP, so it
should be WinNT. can anyone give me a code sample?
Thanks,
Jim.

Nov 19 '05 #3
I am doing trying to follow
http://msdn.microsoft.com/library/de...etADSearch.asp

When I type Imports System.DirectoryServices on type of my source code I see
System.DirectoryServices is underlined with blue, meaning not recognized. DO
I have any setting missing in my environment?
Thanks,
Jim.

"Kevin Spencer" wrote:
LDAP is just a protocol, which you DO use to query Active Directory. There
are several articles listed on the following page:

http://dotnetjunkies.com/WebLog/darr.../08/35643.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
Hello,
How would you read active directory information, username, e-mail, ...
I am using VB in my asp.net and I do not think that we use LDAP, so it
should be WinNT. can anyone give me a code sample?
Thanks,
Jim.


Nov 19 '05 #4
Ok. Added it through references
"JIM.H." wrote:
I am doing trying to follow
http://msdn.microsoft.com/library/de...etADSearch.asp

When I type Imports System.DirectoryServices on type of my source code I see
System.DirectoryServices is underlined with blue, meaning not recognized. DO
I have any setting missing in my environment?
Thanks,
Jim.

"Kevin Spencer" wrote:
LDAP is just a protocol, which you DO use to query Active Directory. There
are several articles listed on the following page:

http://dotnetjunkies.com/WebLog/darr.../08/35643.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
Hello,
How would you read active directory information, username, e-mail, ...
I am using VB in my asp.net and I do not think that we use LDAP, so it
should be WinNT. can anyone give me a code sample?
Thanks,
Jim.


Nov 19 '05 #5

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...
1
4732
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
6
2390
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any...
1
3877
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
10
4031
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
0
1991
by: RTT | last post by:
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like:...
0
2517
by: FrankieBakerJr | last post by:
Hello all I have an ASP.NET 2003 application (running Windows XP) that allows user to change and reset their Active Directory password. I'm using an admin account to query and reset the passwords...
3
2442
by: Chris Noble | last post by:
I need to be able to read and add to the collection of email addesses for an Active Directory User with a mailbox. I assume that this is a collection object. However I can't find any help on which...
5
7689
by: dhanashivam | last post by:
Hi All, I am using the DirectorySearcher class for reading the active directory users. But the result shows the IUSR accounts also. I dont want to take the IUSR accounts. So please help...
0
7287
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
7348
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
7006
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
7467
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...
0
4685
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
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
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
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
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.