Sometimes I want to use Samba as fast as possible. Unfortunately there may occur unexpected problems during user authentication. Following sequence of commands solves many of them:
pdbedit -a user_name
In other words, adding user and setting up password may not have been enough, we need to add him/her to user database.
sudo mount -t cifs //netbiosname/sharename /media/sharename