From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20335 invoked by alias); 18 Jun 2014 08:38:41 -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 20323 invoked by uid 89); 18 Jun 2014 08:38:41 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Jun 2014 08:38:40 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 074D68E05FF; Wed, 18 Jun 2014 10:38:37 +0200 (CEST) Date: Wed, 18 Jun 2014 08:38:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: gecos from AD? (was Re: timeout in LDAP access) Message-ID: <20140618083837.GW23700@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20140617100011.GL23700@calimero.vinschen.de> <20140617103014.GP23700@calimero.vinschen.de> <8E2EDB1F-9A60-488B-929F-7E62C0808A3E@Denis-Excoffier.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hCenlVgnDQUGHXTR" Content-Disposition: inline In-Reply-To: <8E2EDB1F-9A60-488B-929F-7E62C0808A3E@Denis-Excoffier.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-06/txt/msg00264.txt.bz2 --hCenlVgnDQUGHXTR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2495 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 Content-length: 819 -----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--