pam_mount is a Pluggable Authentication Module that can mount volumes for a user session upon login, using the same passwords as for login. It supports any filesystem your kernel is capable of, including FUSE, SMB/CIFS, various crypto types, and more.