mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 21:47:40 +03:00
Root package now contains only initialization code and 'dummy' module. Each module now got its own package. Module packages are grouped by their main purpose (storage/, target/, auth/, etc). Shared code is placed in these "group" packages. Parser for module references in config is moved into config/module. Code shared by tests (mock modules, etc) is placed in testutils.
46 lines
1.2 KiB
Go
46 lines
1.2 KiB
Go
// shadow package implements utilities for parsing and using shadow password
|
|
// database on Unix systems.
|
|
package shadow
|
|
|
|
type Entry struct {
|
|
// User login name.
|
|
Name string
|
|
|
|
// Hashed user password.
|
|
Pass string
|
|
|
|
// Days since Jan 1, 1970 password was last changed.
|
|
LastChange int
|
|
|
|
// The number of days the user will have to wait before she will be allowed to
|
|
// change her password again.
|
|
//
|
|
// -1 if password aging is disabled.
|
|
MinPassAge int
|
|
|
|
// The number of days after which the user will have to change her password.
|
|
//
|
|
// -1 is password aging is disabled.
|
|
MaxPassAge int
|
|
|
|
// The number of days before a password is going to expire (see the maximum
|
|
// password age above) during which the user should be warned.
|
|
//
|
|
// -1 is password aging is disabled.
|
|
WarnPeriod int
|
|
|
|
// The number of days after a password has expired (see the maximum
|
|
// password age above) during which the password should still be accepted.
|
|
//
|
|
// -1 is password aging is disabled.
|
|
InactivityPeriod int
|
|
|
|
// The date of expiration of the account, expressed as the number of days
|
|
// since Jan 1, 1970.
|
|
//
|
|
// -1 is account never expires.
|
|
AcctExpiry int
|
|
|
|
// Unused now.
|
|
Flags int
|
|
}
|