[Mono-list] LDAP C# Novell Component

pubz pubz at laposte.net
Tue Jan 31 07:21:54 EST 2006

Hello ! 

I'm writing a tool which has to access multiple LDAP servers (including ADS and OpenLDAP) in C# and to access the openLDAP server I used the Novell.Directory.Ldap.dll 
(more info : http://www.novell.com/coolsolutions/feature/11204.html) 

When using the codelines provided on that page when it comes to searching the directory, I meet a problem 

while ((message = queue.getResponse()) != null) 
if (message is LdapSearchResult) 
LdapEntry entry = ((LdapSearchResult) message).Entry; 
System.Console.Out.WriteLine("\n" + entry.DN); 

Things is, "message" is LdapResponse type not LdapSearchResult, BUT the message variable has an attribute "Name" which is equal to "LdapSearchResult" when executing the code 
Only, this "Name" attribute is not readable, it's private type and cannot be accessed... 

The code I used above is a copy/paste of the original Novell page  did anybody have the problem yet ? Any idea ? 

Thanks a lot in advance !!

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060131/a11a554d/attachment.html

More information about the Mono-list mailing list