delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/18/04:38:57

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=uH04NrRKItpcac6VQUyMS1GWQpyNIQENlQzYUH6gxJfdXPzODlpX7
WdMSn05ZO46FPMPtXkwcb5FWq8ngoh19O1mPMww/2SrbkttOQfv0SbEaNfXuIHu0
xkHAO4tp3/lHMqhU5AmX/v/wNIUNt6Xt7f/C1Uu42k4IGGobQ+f2Eo=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=xKIplop45KPeC42SLqn6OuaqnfU=; b=KUCv61FUcOcoUCYinmnb9+OD/Iyh
C/QF4F1fcLihE+5qkaPXgnjFCwAF+CSl6EycuTxclY3Dy6mFWwOL8Pkg6/1lnrOv
jSYehMVE0gMrB+nf86zHrPsfXIfcHRUQgBMkjnQTy05ZAR96aW6mNrLmjezI/YQm
5XTYq76EzkhV95s=
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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 18 Jun 2014 10:38:37 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gecos from AD? (was Re: timeout in LDAP access)
Message-ID: <20140618083837.GW23700@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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> <8E2EDB1F-9A60-488B-929F-7E62C0808A3E AT Denis-Excoffier DOT org>
MIME-Version: 1.0
In-Reply-To: <8E2EDB1F-9A60-488B-929F-7E62C0808A3E@Denis-Excoffier.org>
User-Agent: Mutt/1.5.23 (2014-03-12)

--hCenlVgnDQUGHXTR
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jun 18 00:59, Denis Excoffier wrote:
> 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 =E2=80=98:=E2=80=99, in partic=
ular when the
> >>> gecos field itself contains =E2=80=98:=E2=80=99.
> >>=20
> >> Wow, that *is* important.  All fields returned from the server have to
> >> get their colons converted to commas.  I'll fix that.
> >=20
> > 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.

Right, I just wasn't going for details.  The content of gecos is added
to the pw_gecos field, one way or another.

> 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.
>=20
> Why is it so clear that the =E2=80=98:=E2=80=99 should be replaced by a c=
omma? Here, we
> have situations where it contains something
> like =C2=AB Owner: Albert Einstein =C2=BB. An underscore could be more ap=
propriate.

The point is, the colon must be replaced with some other ASCII char.
I'm pretty sure this doesn't deserve another nsswitch.conf setting.
So we just choose *some* ASCII char and be done with it.  I don't like
the underscore but maybe space is ok.  Or semicolon.

> There is something more important: i=E2=80=99ve written in one of my prev=
ious
> messages that when =E2=80=98:=E2=80=99 occurs in gecos, the resulting =E2=
=80=98passwd=E2=80=99 file under
> =E2=80=98getent=E2=80=99 will contain more =E2=80=98:=E2=80=99 than expec=
ted, but this is incorrect. In fact
> (and i would like someone to try it), when =E2=80=98:=E2=80=99 is found w=
ithin the
> gecos field, =E2=80=98getent=E2=80=99 does not show the last (homedir) fi=
eld, and
> the count of =E2=80=98:=E2=80=99 is still correct. The problem might not =
be in getent after
> all.

Sure.  It's all occuring inside the Cygwin DLL.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--hCenlVgnDQUGHXTR
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJToVAMAAoJEPU2Bp2uRE+ghAgQAJOIHZr7J9kZ5tbrjrDI+4fq
O2NS+hTSevkuLcCQM31t7m0UFoOOF7vlfcCud0DFl06gQiOB18QkDRNh4R+xvYVg
Nb+o74girs25sq/8vruMFupfhhHahe1bXVknh6D5YxtVHPXJtBJ1iZ9clw1t3dX0
I8A3UJSQna3ce14zcLrQbyCellQbIKli4tk5EUjgGTLPtFA35TrHdB3hT7ocInSZ
PHrOZ7CFameLxnp89y91fDD3jR/kap9ZkyBgzyg0VAzn2hIhWB48S/tmHf2zh1tF
DefTUFZQji6j9jto+leTlY70ASDVET4+YQAIlVl/+3gMfxVBXBlnGUZij0QLSnEk
Nz8cg8RaABX1y7+xT5oUP+GE39xLSh57FIGQwjEtVVgpPpLYR0i6iEApfDEntQz5
mvbkJTN2Dk38UW42t65rLVsjmC4waMaj5FDZc7Z9CoaiLhgKLuzdtFlt5+XP4Bv/
aSYCIGxVZ/oIrY3Xmv3pyJ6NBD1oowfBSL+RtseyO1Ffn7xVRY+gsLzf36h/ylPI
O15YzTltqZJIJ4qtdcErxy1aEppunCxp9QFvPVSPGH1iiRs9CSCqIJsMY7xSb3/K
KVtgbY9/SXqvrUU6Fobg6CuOWdJIm4Rc503BbqacnXKP2RxsBVqE5YF5+FbAoQj0
+0ev/8S4Sjbbt6uhnHoq
=1hr2
-----END PGP SIGNATURE-----

--hCenlVgnDQUGHXTR--

- Raw text -


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