Date: Fri, 22 Jun 2012 15:32:17 -0700 From: Devin Teske <devin.teske@fisglobal.com> To: Clayton Milos <clay@milos.co.za> Cc: Devin Teske <dteske@freebsd.org>, Freebsd-stable@freebsd.org Subject: Re: [CFT] Need Testers for: sysutils/bsdconfig Message-ID: <B622337A-28E4-443B-BAFD-ECF00F907A4D@fisglobal.com> In-Reply-To: <006001cd5072$84247cd0$8c6d7670$@milos.co.za> References: <2322BE6D-24A8-4F4A-84B2-4DFE33BCA65B@fisglobal.com> <4FE3EB9D.9070509@fuzzwad.org> <4FE419CD.60708@rdtc.ru> <F34D40AA-3AE4-4A1F-B521-CEC2A06ABC79@fisglobal.com> <4FE4245C.3040806@rdtc.ru> <90361FE2-2298-48E5-B8B6-2BA704781098@fisglobal.com> <4FE431C0.8040509@rdtc.ru> <006001cd5072$84247cd0$8c6d7670$@milos.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B622337A-28E4-443B-BAFD-ECF00F907A4D>