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

LDAP vs. Active Directory Attributes

HELP!!!!

VB.NET has been a thorn in my side, but trying to use the
System.DirectoryServices namespace has to be one of the most ridiculously
confusing classes I have EVER encountered!!!!

Am I the only one trying to talk to ADSI using VB.NET??? No one seems to
have any sample code for using this namespace except in C#!!!

This should be a simple question....

When referring to the 'Properties' collection of a DirectoryEntry object,
you use, from what I can tell, the LDAP display name (please correct me if I
am wrong)....
However, the Platform SDK from Microsoft references all the Active Directory
Attributes using the CN.

So my question is, if I HAVE the LDAP display name, how the heck do I figure
out what Active Directory CN it correlates to????

Please Help and thank you in advance

Keith C. Jakobs, MCP

Nov 21 '05 #1
1 4137
On Wed, 11 Aug 2004 19:47:19 -0700, "Keith Jakobs, MCP" <el****@NOSPAM.hotmail.com> wrote:

¤ HELP!!!!
¤
¤ VB.NET has been a thorn in my side, but trying to use the
¤ System.DirectoryServices namespace has to be one of the most ridiculously
¤ confusing classes I have EVER encountered!!!!
¤
¤ Am I the only one trying to talk to ADSI using VB.NET??? No one seems to
¤ have any sample code for using this namespace except in C#!!!
¤
¤ This should be a simple question....
¤
¤ When referring to the 'Properties' collection of a DirectoryEntry object,
¤ you use, from what I can tell, the LDAP display name (please correct me if I
¤ am wrong)....
¤ However, the Platform SDK from Microsoft references all the Active Directory
¤ Attributes using the CN.
¤
¤ So my question is, if I HAVE the LDAP display name, how the heck do I figure
¤ out what Active Directory CN it correlates to????
¤

Not sure exactly what you're trying to do, but if you want the distinguished name of the AD object
then that would be the Path property of the DirectoryEntry class. The CN of the object is the Name
property of the DirectoryEntry class.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 21 '05 #2

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

Similar topics

1
by: Alexander Mossin | last post by:
Hi. This is an ldap newbie question: I am writing some procedures that are accessing active directory. Most values I need are stored using standard attributes, but some are not. So, I'm trying...
4
by: Dave | last post by:
Hello. I am trying to update attributes in LDAP/Active directory from my application that is written in VB.NET. I am using Directory Services to do so. I do not get any errors during the...
1
by: Angel | last post by:
Hello all - I have a LDAP service running on a NT4 box (not a mbr of my AD domain), I'd like to extract the users/attributes from that LDAP service and populate my AD domain with those users and...
4
by: m96 | last post by:
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i can't read the custom attributes/fields, since .net...
1
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...
0
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:...
3
by: Robert Iver | last post by:
Hello, I am developing an application in C# using VS .NET 2005 that will be accessing and updating Active Directory via LDAP. So, far I have written the main portions, but now I am stuck on the...
0
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have...
2
by: jo3c | last post by:
Hi.. Im trying to get some information out of a windows sever 2003 chinese active directory system so let's say encoding is probably big5 or utf-8 what im doing is simliar to ldapsearch in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.