Branch: Tag:

2002-09-05

2002-09-05 15:59:15 by H. William Welliver III <bill@welliver.org>

fixed create() so that connection is actually made when SSL support is not present.

Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.43

2:      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.42 2002/07/31 00:18:48 nilsson Exp $ + // $Id: client.pike,v 1.43 2002/09/05 15:59:15 bill Exp $   //   // Honza Petrous, hop@unibase.cz   //
360:    void create(string|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.42 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.43 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;
413: Inside #if defined(constant(SSL.sslfile))
   info->tls_version = ldapfd->version;    } else    ::create(::_fd); + #else +  if(lauth->scheme == "ldaps") { +  THROW(({"LDAP: LDAPS is not available without SSL support.\n",backtrace()})); +  } +  else +  ::create(::_fd);   #endif       DWRITE("client.create: connected!\n");