Example #1
0
// AcctMgmt is used to determine if the user's account is valid.
//
// Valid flags: Silent, DisallowNullAuthtok
func (t *Transaction) AcctMgmt(f Flags) error {
	t.status = C.pam_acct_mgmt(t.handle, C.int(f))
	if t.status != C.PAM_SUCCESS {
		return t
	}
	return nil
}
Example #2
0
// pam_acctmgmt
func (t *Transaction) AcctMgmt(flags int) int {
	return int(C.pam_acct_mgmt(t.handle, C.int(flags)))
}