Use a samba share to authenticate users. The share must be pre-defined in a repository using the access.smb driver. See the auth.ftp plugin that can be linked to an access.ftp repository, it's the same mechanism.