[Mono-list] Novell LDAP (SSL) using .NET 2.0 on Windows Server

stonefish tom at stonefish.co.uk
Fri Sep 4 11:24:37 EDT 2009



Stéphane Zanoni wrote:
> 
> Hello, Tom.
>  
> Here is a quick snippet...  As long as your looks like this and the
> Mono.Security.dll is in the same directory as your DLL, you should be
> fine.
>  
> var conn = new Novell.Directory.Ldap.LdapConnection();
> conn.SecureSocketLayer = true;
> conn.UserDefinedServerCertValidationDelegate += delegate { return true;
> };
>  
> conn.Connect("192.168.0.1", 636);
>  
> conn.Bind("cn=admin,o=users", "mysecret");
>   
> Stéphane 
> 

Hi Stéphane... looks like you've hit it on the head... brilliant!!
Many thanks, Tom  :-)
-- 
View this message in context: http://www.nabble.com/Novell-LDAP-%28SSL%29-using-.NET-2.0-on-Windows-Server-tp25295744p25296419.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list