I have set up the win2k AD to work with LDAPS on port 636 and I have tested it to work with an windows ldap browser that works over SSL. So all that bits done.
But I have no idea how to change the code to make it connect using LDAPS.
I tried ldapsearch with the -ZZ option and -p 636 but all I got was: ldap_init( 192.168.72.230, 636 ) ldap_start_tls: Can't contact LDAP server
See also http://www.openldap.org/faq/data/cache/185.html
Norbert