Sorry, but I could not make a diff when I send the code. Because of that I send the original code and the modified one. Now I attached the diff result.
The solution was found in this post: http://www.talkaboutsoftware.com/group/microsoft.public.adsi.general/messages/27941.html Victor On Fri, Mar 21, 2008 at 10:06 AM, Graham Leggett <[EMAIL PROTECTED]> wrote: > Harry Holt wrote: > > > Probably my fault. Source attached to this message. > > Is it possible to attach a unified diff instead of the raw source code? > Diffs are much easier to read. > > Regards, > Graham > -- >
292c292,293 < result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, LDAP_OPT_OFF); --- > ULONG ul = (ULONG) LDAP_OPT_OFF; > result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, &ul); 300c301,302 < result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, LDAP_OPT_ON); --- > ULONG ul = (ULONG) LDAP_OPT_ON; > result->rc = ldap_set_option(ldap, LDAP_OPT_SSL, &ul);
