> 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.
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"
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.).
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.
freebsd-stable@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@free..."