From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11698 invoked by alias); 16 Jun 2014 20:39:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11657 invoked by uid 89); 16 Jun 2014 20:39:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: smtp4-g21.free.fr Received: from smtp4-g21.free.fr (HELO smtp4-g21.free.fr) (212.27.42.4) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Jun 2014 20:39:48 +0000 Received: from [192.168.0.11] (unknown [78.224.52.79]) by smtp4-g21.free.fr (Postfix) with ESMTP id E63D44C8049; Mon, 16 Jun 2014 22:39:45 +0200 (CEST) From: Denis Excoffier Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Date: Mon, 16 Jun 2014 20:39:00 -0000 Subject: timeout in LDAP access To: Cygwin Mailing List Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) X-SW-Source: 2014-06/txt/msg00193.txt.bz2 Hello, I=92ve exercised =91getent' a little bit those days (with 'db_enum: all=92 = in /etc/nsswitch.conf), and it seems to me that the timeout =91tv' (3 seconds, in ldap.cc) is probably too small for s= ervers not so quickly responsive or with many (500000, fake or real) users around (see the call to ldap_get_= next_page_s()). 300 seconds should be enough i suppose. Also it is a pity that LDAP_TIMEOUT is not announced to the user (except un= der strace: 0x55). I don=92t know the general policy for timeouts, but i consider that the user would like to be = informed when the passwd/group list was truncated. Another (unrelated and less important) problem is that 'getent' happily pro= duces lines with some extra =91:=92, in particular when the gecos field itself contains =91:=92. Regards, Denis Excoffier. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple