Hi all,

I'm running the following code:

string pwd = "password";
string user = "cn=admin,o=lab";
string host = "";
int port = 636;
lc.UserDefinedServerCertValidationDelegate += new CertificateValidationCallback(CertificateVerificat ionCallBack);
lc.SecureSocketLayer = true;
lc.Connect(host, port);
lc.Bind(user, pwd);

public static bool CertificateVerificationCallBack(
System.Security.Cryptography.X509Certificates.X509 Certificate
int[] target)
return true;

This fails with the following error:

System.NullReferenceException: Object reference not set to an instance of
an obj
at Novell.Directory.Ldap.Connection.connect(String host, Int32 port, Int32
at Novell.Directory.Ldap.Connection.connect(String host, Int32 port)
at Novell.Directory.Ldap.LdapConnection.Connect(Strin g host, Int32 port)
at UPSync.Program.Main(String[] args) in C:\Johan\Visual Studio 2005\Projects
\NovCSLDAPTest\NovCSLDAPTest\Program.cs:line 23

Any suggestions?

Regards johan