In the Global section [global] the significant entries are:
[global]
logon drive = p: // Here you can set the drive letter
encrypt passwords = yes
/* To allow only specific hosts who can connect to server below entry is
used make sure localhost is added */
hosts allow = IP-address, 127.0.0.1/255.255.255.0
logon home = \\netbiosname\%U // home directories will be mounted as the user logs on.
passwd program = /usr/bin/passwd %u
wins support = yes //Enable the windows support
dns proxy = no
netbios name = wealhtheow //Set the netbiosname
netbios aliases = rch01 //Set the alias, this is optional
unix password sync = No //Sync the unix passwords
(Samba (actually 'smbd') makes use of the file 'smb.conf' to know
about its configuration. During installation of samba, smb.conf is
created in the directory '/etc/samba' by default. But in FreeBSD all
the system configuration files are put in the directory /usr/local/etc/.
There were two smb.conf files that were existing on this system and
therefore a link was created from /etc/samba/smb.conf to the actual
file used by FreeBSD which is /usr/local/etc/smb.conf. This was done
to make sure that the Samba server uses the correct version of
the configuration file.
To resolve the passwords problem, the smb.conf file was modified to
remove synchronization between the Samba and Unix passwords.)
logon path = \\rch01\profiles\%U // This will tell the server where to place the home directories
workgroup = rch.uky.edu // Workgroup to be used, all clients should have the same workgroup
os level = 64 // set the OS level
// Below entries are important in order to tell that Samba server is the domain controller
domain logons = yes
pam password change = yes
preferred master = yes
domain master = yes
local master = yes
In the [homes] section the following entries are important :
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
read only = no
create mode = 0600
directory mode = 0700
logon home = \\rch01\%U // This tells where is the home directory for the user
hide files = /*.pst/
In the [profiles] section the path variable tells where the profiles are to be placed and make sure the directories
are created with right names
[profiles]
create mode = 0600
directory mode = 0700
path = /home/samba/profiles/
profile acls = yes
read only = no
writable = yes