all groups > vb.net upgrade > june 2006 >
You're in the

vb.net upgrade

group:

Reading - Parsing Records From An LDAP LDIF File In .Net?



Reading - Parsing Records From An LDAP LDIF File In .Net? Jean-Marie Vaneskahian
6/8/2006 10:17:47 PM
vb.net upgrade: Reading - Parsing Records From An LDAP LDIF File In .Net?

I am in need of a .Net class that will allow for the parsing of a LDAP
LDIF file. An LDIF file is the standard format for representing LDAP
objects. I need to be able to read the records from an LDIF file into
..Net.

There exists a Perl module that will do exactly this called
Net::LDAP::LDIF but I am wanting to port my code over to .Net and
cannot find anything with similar LDIF functionality. I would like to
avoid having to write my own .Net class to read the LDIF file and
create record objects. I am sure I am not that only person that needs
to do this that is using .Net.

Does there exist a .Net class that will read LDIF files? Is there a
third party .Net class that can be purchased that can read an LDIF
file?

Any help would be appreciated,
Jean-Marie Vaneskahian
jean@vaneskahian.com
--
---------------------------
Jean-Marie Vaneskahian
jean@vaneskahian.com
---------------------------

RE: Reading - Parsing Records From An LDAP LDIF File In .Net? Ken Tucker [MVP]
6/9/2006 11:36:02 AM
Hi,

Check out the classes in the directory services namespace.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdirectoryservices.asp

Here is a link to a simple example on listing the computers in an active
directory

http://www.vb-tips.com/default.aspx?ID=2b7d8d24-665f-43d4-9553-9c76953e41cf

Ken
------------------------
[quoted text, click to view]
Re: Reading - Parsing Records From An LDAP LDIF File In .Net? jeangv NO[at]SPAM gmail.com
6/9/2006 1:05:23 PM
Ken,

I guess I am not getting what you are telling me. I am VERY familiar
with the System.DirectoryServices Namespace. That namespace has no
methods for interacting with an LDIF file that I know of. What am I
missing? My problem is reading LDIF file into LDAP Enrty records, not
Reading entries from an actual LDAP server (if that were the case, then
you are correct, the System.DirectoryServices would be ideal).

Please let me know if I missed something.

Thanks for any help,
Jean-Marie Vaneskahian
jean@vaneskahian.com


[quoted text, click to view]
AddThis Social Bookmark Button