Home All Groups Group Topic Archive Search About

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

Author
9 Jun 2006 3:17 AM
Jean-Marie Vaneskahian
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
j***@vaneskahian.com
--
---------------------------
Jean-Marie Vaneskahian
j***@vaneskahian.com
---------------------------

Author
9 Jun 2006 6:36 PM
Ken Tucker [MVP]
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
------------------------
Show quoteHide quote
"Jean-Marie Vaneskahian" wrote:

> 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
> j***@vaneskahian.com
> --
> ---------------------------
> Jean-Marie Vaneskahian
> j***@vaneskahian.com
> ---------------------------
>
>
>
Author
9 Jun 2006 8:05 PM
jeangv
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
j***@vaneskahian.com


Ken wrote:
Show quoteHide quote
> 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
> ------------------------
> "Jean-Marie Vaneskahian" wrote:
>
> > 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
> > j***@vaneskahian.com
> > --
> > ---------------------------
> > Jean-Marie Vaneskahian
> > j***@vaneskahian.com
> > ---------------------------
> >
> >
> >