From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 581 invoked by alias); 18 Jun 2014 02:18:10 -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 564 invoked by uid 89); 18 Jun 2014 02:18:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,KAM_INFOUSME,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ve0-f177.google.com Received: from mail-ve0-f177.google.com (HELO mail-ve0-f177.google.com) (209.85.128.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 18 Jun 2014 02:18:05 +0000 Received: by mail-ve0-f177.google.com with SMTP id i13so176228veh.36 for ; Tue, 17 Jun 2014 19:18:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:content-type :content-transfer-encoding; bh=pYD6VOqawNafkewlB60L7nHiLdzNpB/n6ui72AZI7BY=; b=JKBlHKoUDeU7it/s1IpPb9bD8q89307XUE9rz5V+2K+MkldhOLJolUqJmZQqV2JRlt WPf33H6NaxwBJbRZu+/zicFFNBCQEeNnziJCs1s5b37Jgf8GuG1zBkajwzGN1bJYvbwD 66O4C+sNh5bCYwO/W2w3rXDsnw/cnnmu+tHj0WB0royH6YNWwx3bolpfYJ7PPQlLSKp/ emG1fsZXyF33g/w3MrZ7cq8CkI2geJPGh77i76nxBlPznfkVAp5gXBazvKDc+xY98cuo joZ3aEd2tl99ks1oEJf5Q3mVkDuzIFWu2etwMQhRAS1h2bn2rwes5n7XxnDz7+6SNnSx TS2w== X-Gm-Message-State: ALoCoQn/MRCBLlUAM8n/rHCC7P0onwGR7Wm/7kdf9yI9UsDOPOcy+7j37lShIh3YRhE2RxJlic/c X-Received: by 10.58.246.132 with SMTP id xw4mr24953724vec.2.1403057882601; Tue, 17 Jun 2014 19:18:02 -0700 (PDT) From: "Christoph H. Hochstaetter" References: <20140617100011.GL23700@calimero.vinschen.de> <20140617103014.GP23700@calimero.vinschen.de> <20140617125154.GR23700@calimero.vinschen.de> In-Reply-To: <20140617125154.GR23700@calimero.vinschen.de> MIME-Version: 1.0 Date: Wed, 18 Jun 2014 02:18:00 -0000 Message-ID: Subject: AW: gecos from AD? (was Re: timeout in LDAP access) To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00251.txt.bz2 On Jun 17 14:52, Corinna Vinschen wrote: >On Jun 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 =E2=80=98:=E2=80=99, in parti= cular when the >> > > gecos field itself contains =E2=80=98:=E2=80=99. >> > >> > Wow, that *is* important. All fields returned from the server have >> > to get their colons converted to commas. I'll fix that. > >On second thought, removing colons should only occur for gecos. >The other fields shouldn't contain colons anyway since their >content has to be POSIX-compatible anyway. > >So, either I add code to remove the colons from the gecos field ... > > >> 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. >> >> Shall I just remove fetching the gecos fields from AD entirely? > >... or that. See http://www.manpages.info/freebsd/passwd.5.html "This information is used by the finger(1) program, and the first field used by the system mailer " Some mail program might want to use the gecos field as a friendly name in the from: field. Thus the gecos field should start with the user's full name and then a comma (at least when retrieved with getpwnam(3) but getpwent(3) would be great too). Whether the name comes from the gecos field in AD or any other source (e.g. some other AD field) doesn't seem to make a difference for me. -Christoph -- 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