From dev-return-30879-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Wed Aug 05 18:26:39 2009 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 64440 invoked from network); 5 Aug 2009 18:26:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Aug 2009 18:26:38 -0000 Received: (qmail 62393 invoked by uid 500); 5 Aug 2009 18:26:46 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 62290 invoked by uid 500); 5 Aug 2009 18:26:45 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 62282 invoked by uid 99); 5 Aug 2009 18:26:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 18:26:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.71.152.235] (HELO lirone.symas.net) (64.71.152.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 18:26:33 +0000 Received: from [76.91.220.157] (helo=[192.168.1.20]) by lirone.symas.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1MYlBh-00016V-RV for dev@directory.apache.org; Wed, 05 Aug 2009 11:26:10 -0700 Message-ID: <4A79CEBA.1030306@symas.com> Date: Wed, 05 Aug 2009 11:26:02 -0700 From: Howard Chu User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; rv:1.9.1b5pre) Gecko/20090630 SeaMonkey/2.0a1pre Firefox/3.0.3 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [Client-API] Should the unbind() operation close the connection ? References: <4A79ADC6.1070801@nextury.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Quanah Gibson-Mount wrote: > AFAIK, it is perfectly valid to unbind and then rebind as a new user, > without ever closing the connection, and without ever involving connection > pooling. This is why various LDAP api's, such as Net::LDAP, allow for the > unbind operation as something separate than the close operation. Wrong. To rebind as a new user and keep the same connection, simply issue a new Bind request. Unbind = Close. > > --Quanah > > --On August 5, 2009 1:53:42 PM -0400 Alex Karasulu > wrote: > >> I think this is a matter of whether or not you are dealing with >> connection pooling. >> >> Regards, >> Alex >> >> >> On Wed, Aug 5, 2009 at 12:05 PM, Emmanuel Lecharny >> wrote: >> >> AFAICT, there is nowhere in the RFC a place where it's explicitely said >> that the Unbnd operation closes the connection. >> >> Should we close the connection on the client side when doing a Unbond(), >> or keep it open ? >> >> -- >> -- >> cordialement, regards, >> Emmanuel Lécharny >> www.iktek.com >> directory.apache.org -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/