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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=qR63Qx764s9luw16Nf1eR6sq9rL/ DAanFNDptfPgmB7VIM3yqEaS6tuCfw7D5jvDlI84+6d8vkOfR+TwVl94ggjdiVXr H8zMdQFcONYONESYl58EglysOsW0F5VNIZGkclfPz7QQoPrHnNwnphPBiIDCkVZb Eq/v7Fz/OLzcpJw= 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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=KKyxET89oxcOJ5K0YQvYDhXSUNU=; b=p2 apWFxc0iMc2Osr8eHX6od5JtbSN9yUI4X2c53Z7/pVz9Axa2ZLxmbmgBK0QVBCng HYeN+/UhekGMntzHHg9K4IIUm7QZ7c/n7xtzbZKOxTGZyH6Lzd0z1SV/iaWr6Ekc jLoSZA5iaFXbIWWqnLlIkW4pubKwlie6haqgjyp+g= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: smtp1-g21.free.fr Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: gecos from AD? (was Re: timeout in LDAP access) From: Denis Excoffier In-Reply-To: <20140617103014.GP23700@calimero.vinschen.de> Date: Wed, 18 Jun 2014 00:59:16 +0200 Message-Id: <8E2EDB1F-9A60-488B-929F-7E62C0808A3E@Denis-Excoffier.org> References: <20140617100011 DOT GL23700 AT calimero DOT vinschen DOT de> <20140617103014 DOT GP23700 AT calimero DOT vinschen DOT de> To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s5HMxVTe014792 On 2014-06-17 12:30, Corinna Vinschen wrote: > On Jun 17 12:00, Corinna Vinschen wrote: >> On Jun 16 22:39, Denis Excoffier wrote: >>> Another (unrelated and less important) problem is that 'getent' >>> happily produces lines with some extra ‘:’, in particular when the >>> gecos field itself contains ‘:’. >> >> Wow, that *is* important. All fields returned from the server have to >> get their colons converted to commas. I'll fix that. > > While we're at it... do we really need the gecos info? Cygwin fills > out this field with the Windows username and SID info for internal > purposes, and then adds the gecos info from AD. However, it's just > informational and usually only used by the finger(1) tool. The gecos field from AD seems to be _prepended_ (not appended) to the username + SID. In any case, it may represent some information with high added value (like user real name or e-mail address, depending on local rules of course). I would not vote for removing it. Why is it so clear that the ‘:’ should be replaced by a comma? Here, we have situations where it contains something like « Owner: Albert Einstein ». An underscore could be more appropriate. There is something more important: i’ve written in one of my previous messages that when ‘:’ occurs in gecos, the resulting ‘passwd’ file under ‘getent’ will contain more ‘:’ than expected, but this is incorrect. In fact (and i would like someone to try it), when ‘:’ is found within the gecos field, ‘getent’ does not show the last (homedir) field, and the count of ‘:’ is still correct. The problem might not be in getent after all. 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