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)
(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
Code:
while ((message = queue.getResponse()) != null)
{
if (message is LdapSearchResult)
{
LdapEntry entry = ((LdapSearchResult) message).Entry;
System.Console.Out.WriteLine("\n" + entry.DN);
....
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)
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
