As far as I understand it, the user folder /home/user is encrypted with the users password. Connecting through smb to the computer does somehow decrypt the user's folder. How is this done? SMB doesn't transfer the password normally.
Also, I'm trying to achieve something similar using pam_mount, but there are some limitations. What software does ubuntu use to mount its encrypted file systems?