delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/17/22:18:27

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:references:in-reply-to:mime-version:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=NDa/gRcANZH82LJ9JcAi2tdZHSZXzNqLM1PSkjYeIb1
SPCoShjfrW4HiEVijXkTBt9R+GJ/UlekKa7Jjo5W9MjzZzPbzYV6ERUZRuW8gwHw
0udoPyfSmmjCNWKgtIrB5fTvGh4zCCuMdNUGOic8SBXeixzCCMbb2kUH/3Wkggdc
=
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:references:in-reply-to:mime-version:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=QoSxH+4XeTGsdvYLzf+1hnBkf/Y=; b=vua6x8EArpNqS0JLZ
A9yPW2AinvP2JfQV1gVVa96Yq7vJbir4PDvGmIiNA6wa7MN2YTAoVQgtw7NuDB8Y
95IfcfWGdpRXX3rrNddBVU6gb3EPrY3Y9APT+DHX3BNnEd8s24XLbbHAw173u3ZM
peT/7lh6AklYR7qvRwSVRnG87w=
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=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
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" <christoph AT hochstaetter DOT de>
References: <F312783D-AD66-4614-922B-E44403C7E372 AT Denis-Excoffier DOT org> <20140617100011 DOT GL23700 AT calimero DOT vinschen DOT de> <20140617103014 DOT GP23700 AT calimero DOT vinschen DOT de> <20140617125154 DOT GR23700 AT calimero DOT vinschen DOT de>
In-Reply-To: <20140617125154.GR23700@calimero.vinschen.de>
MIME-Version: 1.0
Date: Wed, 18 Jun 2014 04:18:01 +0200
Message-ID: <fe3db64ba9125d2f0340e8723a117c5f@mail.gmail.com>
Subject: AW: gecos from AD? (was Re: timeout in LDAP access)
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s5I2IMou024837

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 ‘:’, 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.
>
>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


- Raw text -


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