/* * call-seq: * LDAP::SSLConn.new(host='localhost', port=LDAP_PORT, * start_tls=false, sctrls=nil, cctrls=nil) * => LDAP::SSLConn * LDAP::SSLConn.new(host='localhost', port=LDAP_PORT, * start_tls=false, sctrls=nil, cctrls=nil) { |conn| } * => LDAP::SSLConn * * Return a new LDAP::SSLConn connection to the server, +host+, on port +port+. * If +start_tls+ is *true*, START_TLS will be used to establish the * connection, automatically setting the LDAP protocol version to v3 if it is * not already set. * * +sctrls+ is an array of server controls, whilst +cctrls+ is an array of * client controls. */ VALUE rb_ldap_sslconn_initialize (int argc, VALUE argv[], VALUE self) { #if defined(USE_OPENLDAP_SSLCONN) return rb_openldap_sslconn_initialize (argc, argv, self); #elif defined(USE_NSSLDAP_SSLCONN) return rb_nssldap_sslconn_initialize (argc, argv, self); #elif defined(USE_WLDAP32_SSLCONN) return rb_wldap32_sslconn_initialize (argc, argv, self); #else rb_notimplement (); #endif }