Documentation ¶
Overview ¶
shadow package implements utilities for parsing and using shadow password database on Unix systems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchUser = errors.New("shadow: user entry is not present in database")
View Source
var ErrWrongPassword = errors.New("shadow: wrong password")
Functions ¶
Types ¶
type Auth ¶
func (*Auth) InstanceName ¶
type Entry ¶
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 }
func (*Entry) IsAccountValid ¶
func (*Entry) IsPasswordValid ¶
func (*Entry) VerifyPassword ¶
Click to show internal directories.
Click to hide internal directories.