How do I view what version of samba I am running for my domain controler?

Use the smbstatus command from the shell to get an output like this Samba version 3.0.25b-1.el5_1.4


Just enter below command on your terminal

smbd -V