Read you samba documentation. :)

Create username.map and group.map files in /etc/samba.