[CFT] Need Testers for: sysutils/bsdconfig
Devin Teske
devin.teske at fisglobal.com
Fri Jun 22 22:32:22 UTC 2012
On Jun 22, 2012, at 5:27 AM, Clayton Milos wrote:
>
> 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.
>
This was on-purpose because there is a discrepancy in passwd(5) manual regarding 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 the
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 empty.
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 such discrepancy can be resolved.
NOTE: It should also be noted that Linux and FreeBSD when pointed at the same LDAP server have disagreements between the value of this field and the best solution in this situation is to remove the field in question (e.g., shadowExpire, shadowMax, etc.).
--
Devin
_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
More information about the freebsd-stable
mailing list