From owner-freebsd-current@freebsd.org Tue Apr 17 00:11:53 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44F73F89251 for ; Tue, 17 Apr 2018 00:11:53 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670061.outbound.protection.outlook.com [40.107.67.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C6D226C2FD; Tue, 17 Apr 2018 00:11:52 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM (52.132.66.153) by YQBPR0101MB1203.CANPRD01.PROD.OUTLOOK.COM (52.132.67.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.9; Tue, 17 Apr 2018 00:11:51 +0000 Received: from YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM ([fe80::893c:efc2:d71f:945a]) by YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM ([fe80::893c:efc2:d71f:945a%13]) with mapi id 15.20.0675.015; Tue, 17 Apr 2018 00:11:51 +0000 From: Rick Macklem To: Brooks Davis CC: freebsd-current Subject: Re: anyone running with ngroups increased from 16? Thread-Topic: anyone running with ngroups increased from 16? Thread-Index: AQHT1d+xGK+ZmudNRU+L71iIIFWgpQ== Date: Tue, 17 Apr 2018 00:11:51 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rmacklem@uoguelph.ca; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; YQBPR0101MB1203; 7:HZ5ym18ftum8pcjIpe0ZuaB21AJpAp8mgrjw83zlOF1ymg6Bb8sSH1xi5Og3g02IDd5ho2oQ4UsdQxIEdbipxBT4SVLynp+lI2bgYIVkNk5/mLVUXexzdw9rcR+t+jPa2zd7wYku50txYRTfWB6i+1gj9fzBKs3tgHduYfztL2Pb7H808Uyoykf5nEKIRXkc+Q4ueVvJvxuPWiCleeu2xktY817CRUvWZ/rwdjTCgqUKWW43nUKd1J+dSHJCYysV x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989080)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7153060)(7193020); SRVR:YQBPR0101MB1203; x-ms-traffictypediagnostic: YQBPR0101MB1203: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231232)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:YQBPR0101MB1203; BCL:0; PCL:0; RULEID:; SRVR:YQBPR0101MB1203; x-forefront-prvs: 0645BEB7AA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(346002)(396003)(376002)(199004)(189003)(53936002)(7696005)(229853002)(478600001)(4326008)(305945005)(6916009)(99286004)(2900100001)(6436002)(9686003)(102836004)(450100002)(59450400001)(55016002)(5250100002)(6246003)(25786009)(786003)(316002)(26005)(6506007)(486006)(86362001)(2906002)(476003)(14454004)(106356001)(3280700002)(3660700001)(5660300001)(97736004)(81166006)(81156014)(33656002)(74316002)(105586002)(74482002)(186003)(68736007)(8936002)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:YQBPR0101MB1203; H:YQBPR0101MB1042.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-microsoft-antispam-message-info: 8dwV/R0BjqGRaDQcHPkhrsV0SrOPIfitY8UM1ABXnhMEH+9Yn3l19RHKhhWQuAMOt5cmbI6yE8BDyDRNthkjLO1f2clZOuJwwe2Pca2jq+Ydy/uxzuk03DfgQTyWp5nQhhLYVHXG7Kxsp25UvtIh/KeaHYThLbU04YRvfTfSiCkK000SDdIRHs1EyAzBLaTt spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: b1e69a06-056d-414c-d1a8-08d5a3f7d1c8 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: b1e69a06-056d-414c-d1a8-08d5a3f7d1c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2018 00:11:51.3860 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB1203 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 00:11:53 -0000 Brooks Davis wrote: >On Mon, Apr 16, 2018 at 06:37:53PM +0800, Julian Elischer wrote: >> Windows users seem to have an almost unlimited number of groups and=3D20 >> soem places seem to use them a LOT. >> This gives Posix systems problems with deciding how to handle them=3D20 >> all. Especially when getting >> user credentials from winbindd (samba). >>=3D20 >> Does anyone know of any work done to either bypass this limit or to at= =3D20 >> least expand it? > >I fixed this in 2009 for everything but NFS AUTH_SYS. NGROUPS_MAX is >1023. IIRC the usual hack employed in storage systems is to ignore the >groups provided by AUTH_SYS and get them from winbindd. I don't know of >a public implementation of that. If winbindd gets the information from LDAP, then you can get the same effec= t from "nfsuserd -manage-gids" for AUTH_SYS (or as Toomas Soome noted, the gs= sd does the same thing for Kerberized mounts). Both of these utilities use getgrouplist() on the NFS server to acquire the= list of groups for the user. As such, anything configured for the library call, = such as LDAP, will provide the list of groups. rick