Fixed pam support.
Merge branch 'master' into auto-size-detect