apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r279648 - in /apr/apr-util/branches/1.2.x/ldap: apr_ldap_init.c apr_ldap_option.c
Date Thu, 08 Sep 2005 21:45:59 GMT
Author: wrowe
Date: Thu Sep  8 14:45:57 2005
New Revision: 279648

URL: http://svn.apache.org/viewcvs?rev=279648&view=rev

  Backport rev 265755

  Correct the use-case checking to determine our ldap[ssl]_[ssl]init()
  choice.  This isn't platform specific, it must be based on our
  apu_ldap.h configuration choices, APR_HAS_LDAP_SSLINIT and 
  APR_HAS_LDAPSSL_INIT are already flagged correctly on Netware, Win32.

  And follow the APR_HAS_LDAP_START_TLS_S election on Win32, because
  the platform SDK exports a binding to ordinals 330/331 for start/stop
  TLS, but these entry points are missing on Windows 2000 Pro SP4, and
  likely many other flavors of WLDAP32.DLL.  

  Note that the WLDAP32.DLL is bound by ordinals, not by fn names, so
  VC98 for example provides an invalid wldap32.lib with the wrong
  ordinal numbers.  Only use the platform SDK, and use depends.exe to
  ensure that the elected functions are correct.  One good thing; the
  VC98 flavor is an LDAPv2 toolkit, while the PSDK is an LDAPv3 which
  passes the #ifndef/#error backstop.  So it's unlikely a user will
  bind to the wrong wldap32.lib if the LIB and INCLUDES paths on their
  configuration keeps the VC and PSDK paths in the same order relative
  to the other envvar.


Modified: apr/apr-util/branches/1.2.x/ldap/apr_ldap_init.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/branches/1.2.x/ldap/apr_ldap_init.c?rev=279648&r1=279647&r2=279648&view=diff
--- apr/apr-util/branches/1.2.x/ldap/apr_ldap_init.c (original)
+++ apr/apr-util/branches/1.2.x/ldap/apr_ldap_init.c Thu Sep  8 14:45:57 2005
@@ -145,8 +145,10 @@
     apr_ldap_err_t *result = (apr_ldap_err_t *)apr_pcalloc(pool, sizeof(apr_ldap_err_t));
     *result_err = result;
     *ldap = ldapssl_init(hostname, portno, 0);
+    *ldap = ldap_sslinit((char *)hostname, portno, 0);
     *ldap = ldap_init((char *)hostname, portno);

Modified: apr/apr-util/branches/1.2.x/ldap/apr_ldap_option.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/branches/1.2.x/ldap/apr_ldap_option.c?rev=279648&r1=279647&r2=279648&view=diff
--- apr/apr-util/branches/1.2.x/ldap/apr_ldap_option.c (original)
+++ apr/apr-util/branches/1.2.x/ldap/apr_ldap_option.c Thu Sep  8 14:45:57 2005
@@ -304,6 +304,7 @@
             result->msg = ldap_err2string(result->rc);
     else if (tls == APR_LDAP_STARTTLS) {
         result->rc = ldap_start_tls_s(ldap, NULL, NULL, NULL, NULL);
         if (result->rc != LDAP_SUCCESS) {
@@ -318,6 +319,7 @@
             result->msg = ldap_err2string(result->rc);

View raw message