Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eX7pe-0008Ql-IA for pgsql-committers@arkaria.postgresql.org; Thu, 04 Jan 2018 15:53:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eX7pe-0007ew-4a for pgsql-committers@arkaria.postgresql.org; Thu, 04 Jan 2018 15:53:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eX7pd-0007em-Kk for pgsql-committers@lists.postgresql.org; Thu, 04 Jan 2018 15:53:26 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eX7pa-0003Vt-V4 for pgsql-committers@postgresql.org; Thu, 04 Jan 2018 15:53:24 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7629320A92; Thu, 4 Jan 2018 10:53:21 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Thu, 04 Jan 2018 10:53:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=0CKnQA /Vc3Df/yIGRNiXtX4ciwcF5vdvb+AB3XKd/4Q=; b=Ar1ijN5lhVEFvDJRUwtkNf TQlFgj4P89AHAMQkBkvWdcUul5Jr8OsRKm2814sH1eBtyUmlJmVMgn0YhcjGd+bl /5MR3YPxZyiHg2Mq8cbJmd5ugoOrg1QV8wXc8YLuLou/Hs7Owq8eGNCS38y3Iunq GoNtXjnYsdcpqWPgTd9h+iY98KuMAtrf4O9V6apgwhm258D2dX8HbvAewYzZJ+xU uM9kjG7njVw+qv/GnFIWbt+Tylif+2e+RAhAtFN89C6F1yxKJeXuWUAg6QPkZEfQ /VF0QfNNZ7vD7vI/Y9qqZ8zRatAUHL53eWhGWrwjRScDPioQT4GwnVh8LP6q7W8g == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 3717024771; Thu, 4 Jan 2018 10:53:21 -0500 (EST) Subject: Re: pgsql: Allow ldaps when using ldap authentication To: Thomas Munro References: Cc: pgsql-committers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Thu, 4 Jan 2018 10:53:20 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/3/18 16:24, Thomas Munro wrote: > Windows documentation talks about LDAP_SSL_PORT instead. I assume > that "Vista Ultimate 6.0.6000 MSVC 2005 Pro 8.0.50727.867" doesn't > define LDAPS_PORT, but some later version added it for compatibility > with OpenLDAP. Let's just define it ourselves if it's undefined as we > did for some other LDAP macros, since its value is well known (it's an > IANA-registered port). See attached. > > While poking around in the documentation, I came across this > surprising sentence[1]: "Be aware that even if the secure parameter is > set to zero, if the PortNumber parameter is set to LDAP_SSL_PORT (636) > or to LDAP_SSL_GC_PORT (3269), an encrypted session is initiated." > Huh. That wasn't mentioned on the main page for the function[2] and > I don't like it, because it means that the same connection string > could have a different meaning on Windows and Unix. So I also propose > that we also tweak the code to prevent that. pushed -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services