Esempio n. 1
0
// OpenSession sets up a user session for an authenticated user.
//
// Valid flags: Slient
func (t *Transaction) OpenSession(f Flags) error {
	t.status = C.pam_open_session(t.handle, C.int(f))
	if t.status != C.PAM_SUCCESS {
		return t
	}
	return nil
}
Esempio n. 2
0
// pam_open_session
func (t *Transaction) OpenSession(flags int) int {
	return int(C.pam_open_session(t.handle, C.int(flags)))
}