delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/16/16:40:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:content-type:content-transfer-encoding
:date:subject:to:message-id:mime-version; q=dns; s=default; b=cC
O0IWtfeZdE8GmgDdLGUv2Yt8bJA6qmWQKYHspveG8CISbAxz9Gk0oPoCr+XV8YQ5
NIeK+i2laQPrseif66mO8S0YbRbWDlexuQ768J4Ol3pIGsess1rTfntBewQVIieq
bKvrL2jTC2srD8kGPdaKG7nFH7nSfDL8PnA0YXfvc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:content-type:content-transfer-encoding
:date:subject:to:message-id:mime-version; s=default; bh=ZBN2twNS
g8W07XLthVVCtcJiMaA=; b=uALtmY3IH3jk95z49M/Z1+XPQBgcYg1qu7IuVY3d
Q8E1aHu8jN2X418vf4zBpHXF1PpY+iE1EjD5cKLbs7ADXIndEo64m+6W/7e4EPMS
q8sOcGhLKr0c/2DrJWWmIxMQ+MMVubgmMwfLvN6WDzBadCSIABUqrGF8Exdwoa8Q
83c=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
From: Denis Excoffier <cygwin AT Denis-Excoffier DOT org>
Date: Mon, 16 Jun 2014 22:39:45 +0200
Subject: timeout in LDAP access
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Message-Id: <F312783D-AD66-4614-922B-E44403C7E372@Denis-Excoffier.org>
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\))
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s5GKe6L3029658

Hello,

I’ve exercised ‘getent' a little bit those days (with 'db_enum: all’ in /etc/nsswitch.conf), and it seems to me
that the timeout ‘tv' (3 seconds, in ldap.cc) is probably too small for servers 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 under strace: 0x55). I don’t 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 produces lines with some extra ‘:’, in
particular when the gecos field itself contains ‘:’.

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019