Exemple #1
0
// Authenticate is used to authenticate the user.
//
// Valid flags: Silent, DisallowNullAuthtok
func (t *Transaction) Authenticate(f Flags) error {
	t.status = C.pam_authenticate(t.handle, C.int(f))
	if t.status != C.PAM_SUCCESS {
		return t
	}
	return nil
}
Exemple #2
0
// pam_authenticate
func (t *Transaction) Authenticate(flags int) int {
	return int(C.pam_authenticate(t.handle, C.int(flags)))
}