From owner-freebsd-stable@FreeBSD.ORG Fri Jun 22 22:32:22 2012 Return-Path: Delivered-To: Freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84DF21065677; Fri, 22 Jun 2012 22:32:22 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 4386E8FC0C; Fri, 22 Jun 2012 22:32:22 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa06.fnfis.com (8.14.4/8.14.4) with ESMTP id q5MMWLri019838 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 22 Jun 2012 17:32:21 -0500 Received: from [10.0.0.105] (10.14.152.61) by smtp.fisglobal.com (10.132.206.31) with Microsoft SMTP Server (TLS) id 14.2.283.3; Fri, 22 Jun 2012 17:32:20 -0500 MIME-Version: 1.0 (Apple Message framework v1257) From: Devin Teske In-Reply-To: <006001cd5072$84247cd0$8c6d7670$@milos.co.za> Date: Fri, 22 Jun 2012 15:32:17 -0700 Message-ID: References: <2322BE6D-24A8-4F4A-84B2-4DFE33BCA65B@fisglobal.com> <4FE3EB9D.9070509@fuzzwad.org> <4FE419CD.60708@rdtc.ru> <4FE4245C.3040806@rdtc.ru> <90361FE2-2298-48E5-B8B6-2BA704781098@fisglobal.com> <4FE431C0.8040509@rdtc.ru> <006001cd5072$84247cd0$8c6d7670$@milos.co.za> To: Clayton Milos X-Mailer: Apple Mail (2.1257) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855, 1.0.260, 0.0.0000 definitions=2012-06-22_06:2012-06-22, 2012-06-22, 1970-01-01 signatures=0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Devin Teske , Freebsd-stable@freebsd.org Subject: Re: [CFT] Need Testers for: sysutils/bsdconfig X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Devin Teske List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2012 22:32:22 -0000 On Jun 22, 2012, at 5:27 AM, Clayton Milos wrote: >=20 > When selecting user account expiry the calendar starts at 1 January 1970.= I > understand that this is when Unix time started but it would be nice for it > to start from the current date. >=20 This was on-purpose because there is a discrepancy in passwd(5) manual rega= rding what a value of zero (0) means for these fields. >From passwd(5): The change field is the number of seconds from the epoch, UTC, until t= he password for the account must be changed. This field may be left empty to turn off the password aging feature. Nowhere in the manual does it say that zero is a synonym to being left empt= y. So I can think of one of two solutions: Update the manual to say that "0" is the same as being "left empty" or Change the behavior to treat zero as "[zero] seconds from the epoch". Currently, bsdconfig treats zero as the latter, not the former -- until suc= h discrepancy can be resolved. NOTE: It should also be noted that Linux and FreeBSD when pointed at the sa= me LDAP server have disagreements between the value of this field and the b= est solution in this situation is to remove the field in question (e.g., sh= adowExpire, shadowMax, etc.). --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.