httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/ldap util_ldap.c
Date Mon, 25 Oct 2004 18:32:58 GMT
bnicholes    2004/10/25 11:32:58

  Modified:    modules/ldap util_ldap.c
  Log:
  Since the host will include a port if the default port is not used, always specify the default
ports for the port parameter.  This will allow a host string that contains multiple hosts
the ability to mix some hosts with ports and some without. All hosts which do not specify
 a port will use the default port.  #30592
  
  Revision  Changes    Path
  1.17      +6 -1      httpd-2.0/modules/ldap/util_ldap.c
  
  Index: util_ldap.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ldap/util_ldap.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- util_ldap.c	14 Oct 2004 11:31:48 -0000	1.16
  +++ util_ldap.c	25 Oct 2004 18:32:58 -0000	1.17
  @@ -259,7 +259,12 @@
       {
           apr_ldap_err_t *result = NULL;
   
  -        apr_ldap_init(r->pool, &(ldc->ldap), ldc->host, ldc->port,
  +	/* Since the host will include a port if the default port is not used,
  +	   always specify the default ports for the port parameter.  This will allow
  +	   a host string that contains multiple hosts the ability to mix some
  +	   hosts with ports and some without. All hosts which do not specify 
  +	   a port will use the default port.*/
  +        apr_ldap_init(r->pool, &(ldc->ldap), ldc->host, ldc->secure?LDAPS_PORT:LDAP_PORT,
                         ldc->secure, &(result));
   
           if (result != NULL) {
  
  
  

Mime
View raw message