This is basically a checklist of how to setup a new system to make samba work. The intent is not to cover everything in detail, merely to point you to each of the tasks that must be performed.
Related manual pages: samba.org.
cd /usr/ports/net/samba
make
make install
cd /usr/local/etc
cp smb.conf.default smb.conf
workgroup = my-domain
hosts allow = 192.168.0. 127.
security = server
password server = my-NT-PDM-machine
encrypt passwords = yes
interfaces = 192.168.0.x/24
This should be only
this machines private NIC (if gateway/firewall) -- you do not
want to provide Samba services to the entire Internet!cd /usr/local/etc/rc.d
mv samba.sh.sample samba.sh
samba.sh
if needed.