Hookup with pam

Ticket: #4628