From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23681 invoked by alias); 1 Aug 2014 10:01:54 -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 23652 invoked by uid 89); 1 Aug 2014 10:01:53 -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; Fri, 01 Aug 2014 10:01:51 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 0D23D8E05FF; Fri, 1 Aug 2014 12:01:49 +0200 (CEST) Date: Fri, 01 Aug 2014 10:01:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Simplify AD integration? Message-ID: <20140801100149.GC25860@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20140730134716.GM25860@calimero.vinschen.de> <259120036f9fe92106ee2f4344c83734@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Gle0L8H5l8ToQqD4" Content-Disposition: inline In-Reply-To: <259120036f9fe92106ee2f4344c83734@mail.gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-08/txt/msg00006.txt.bz2 --Gle0L8H5l8ToQqD4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2792 On Jul 31 23:06, Christoph H. Hochstaetter wrote: > Corinna Vinschen wrote: > >Default is 'auto': > > > > builtin accounts; "+SYSTEM", "+LOCAL", etc. > > primary domain "corinna", "cgf", ... > > other domain: "DOMAIN1+walter", "DOMAIN2+mathilda" > > > > If set to 'primary': > > > > builtin accounts; "+SYSTEM", "+LOCAL", etc. > > primary domain "MYDOMAIN+corinna", "MYDOMAIN+cgf", ... > > other domain: "DOMAIN1+walter", "DOMAIN2+mathilda" > > > > If set to 'always': > > > > builtin accounts; "NT AUTHORITY+SYSTEM", "BULTIN+LOCAL", etc. > > primary domain "MYDOMAIN+corinna", "MYDOMAIN+cgf", ... > > other domain: "DOMAIN1+walter", "DOMAIN2+mathilda" >=20 > >1. Shall we remove the leading '+' from the builtin account names > > or shall we keep it? >=20 > None of these three seem correct to me. It should be: >=20 > builtin accounts; "NT AUTHORITY+SYSTEM", "BULTIN+LOCAL", etc. > primary domain "corinna", "cgf", ... > other domain: "DOMAIN1+walter", "DOMAIN2+mathilda" The prefix-only variation for builtin and well-known acocunts is what's originally used by SFU. I cloned that behaviour as it seemed to have advantages handling getpwname/getgrnam calls. > Windows treats "NT AUTHORITY" and "BUILTIN" as foreign domains like DOMAI= N1 > and DOMAIN2 in Win32 APIs that use a single string for domain and usernam= e, > e.g. lpServiceStartName in CreateService. Examples: >=20 > ".\user1" - can be uses as a shortcut for "MYDOMAIN\user1" > [...] The Windows ".\" prefixing is not at all utilized inside Cygwin. It has nothing to do with how the prefixing is evaluated. > This should be at least configurable thru > db_prefix even though most users might not want to see names like " NT > AUTHORITY+SYSTEM " in ls -l. That's what you get with db_prefix "auto" or "primary". > >2. Shall we stick to '+' as the separator char or choose another one? > > If so, which one? >=20 > Yes "+" is well known for that purpose in Linux and other Unixes. Keep > db_separator in /etc/nsswitch.conf if possible >=20 > >3. Shall we keep the `db_prefix' variability or choose one of > > the prefixing methods and stick to it? If so, which one, auto, > > primary, or always? > See above >=20 > >Bonus question: > > > >4. Should Cygwin downcase all usernames when generating the Cygwin > > username > I prefer downcase. Other users probably will not. So db_username_downcase= =3D > true/false would be great. Sigh. YA setting. I was trying to *simplify* the stuff and reduce variability since that stuff only complicates the code for... what gain? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Gle0L8H5l8ToQqD4 Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJT22WMAAoJEPU2Bp2uRE+g4zwP/ifjBfquNAVYtM84Ux3prx2C dUNAE0ssSHgZcIr4dOvWRgaZgCpLonnK0dR0+o0mCU4jtbQxLsX9fI6NBq9nOdL5 j4Z2lpYYmLE/MFZolmqUK7hPEk4VkAm9iMLgJwFmhJ7QXSC1SmXMmPSXgiJWiZCK PXsjtqgwH7OqAQYM4czFkoG7DpjoSDz1y4phnXsdX+8gQ8APqWly4ROnpZ2NMg+W XBJ5bRcmz1WLOGloFoTefB9Utig45jlGoI5SyfCKLP31oXW9wUvTaFLQSZTBng6f zXuNNwLCVyzg9jVULT8ZQE017Jcd5jW/VsqUHaG9tak39MUCWCzLeH7vLrxmIxyv HApkLi+eJRxoceT5I+D8toha3PlMC4GPKy67bb34pKozmO5cC4/JmWJEb+5OsGnk 55NxB4MY9DUz2LgeHkHbfB5aESvOqj0uFjl5a7h8YVTyak4NjwAidmFQTI0765z6 8BHfLsDCmqZE1iUYg8xKxFR6lwvpblcR2+82NsgfjR6aVlYzAZoImdaNqSWRuZ0P 8G6Spbjc6q2zwBfvpJhLA4IE3Q/JKyPoHDV/HI44JjgjuG2s1NwyCh0X6eIjp8Qc 9DMiVE4pJH2SOuPLhmIMUZRyBYOUiYfHg2YSCdEaLOolEkCadW26sxu2nHd0c2P/ fxVpP8tzLWUZJ1Z/KK2e =lSy7 -----END PGP SIGNATURE----- --Gle0L8H5l8ToQqD4--