1/*2Maddy Mail Server - Composable all-in-one email server.3Copyright © 2019-2020 Max Mazurov <fox.cpp@disroot.org>, Maddy Mail Server contributors45This program is free software: you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation, either version 3 of the License, or8(at your option) any later version.910This program is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with this program. If not, see <https://www.gnu.org/licenses/>.17*/1819// shadow package implements utilities for parsing and using shadow password20// database on Unix systems.21package shadow2223type Entry struct {24 // User login name.25 Name string2627 // Hashed user password.28 Pass string2930 // Days since Jan 1, 1970 password was last changed.31 LastChange int3233 // The number of days the user will have to wait before she will be allowed to34 // change her password again.35 //36 // -1 if password aging is disabled.37 MinPassAge int3839 // The number of days after which the user will have to change her password.40 //41 // -1 is password aging is disabled.42 MaxPassAge int4344 // The number of days before a password is going to expire (see the maximum45 // password age above) during which the user should be warned.46 //47 // -1 is password aging is disabled.48 WarnPeriod int4950 // The number of days after a password has expired (see the maximum51 // password age above) during which the password should still be accepted.52 //53 // -1 is password aging is disabled.54 InactivityPeriod int5556 // The date of expiration of the account, expressed as the number of days57 // since Jan 1, 1970.58 //59 // -1 is account never expires.60 AcctExpiry int6162 // Unused now.63 Flags int64}