10 - Configuring
Samba

There are many ways to configure Samba depending on what you
needs
are. In our case I will configure Samba to use Zimbra LDAP as
password backend and to act as a primary domain controller for domain
TM and as a WINS server for the network. This configuration will
allow Windows workstations to join TM domain as if it was an NT
domain. Below is my /etc/samba/smb.conf file best thing rename your
/etc/samba/smb.conf to /etc/samba/smb.conf.old and then create a new
file with the content below.

12 - Creating Linux and
Samba groups using Zimbra
Admin UI

Log in to Zimbra Admin UI. Go to Posix Groups and
click
“New” and fill the info as shown below:

Then Click on the Samba Group tab and
fill in the info as
shown below:

If you are not sure what to type in group type field – type 2,
this is the default value.

13 - Creating Linux and Samba users using Zimbra Admin UI

Back to the Zimbra Admin UI. Go to Accounts and
hit New,
fill in the information on the first screen and follow the wizard to
the Posix Account screen. Fill in all the required fields on the
Posix Account screen and click Next to go to Samba Account screen.
Fill in the required fields and click Finish.

14 - Testing and fine tuning

To test if PAM on your
Sambaserver is reading
the user password information correctly from
Zimbra LDAP, go back to your Samba server shell and run this command
as root:

getent passwd

You should see the Zimbra accounts that you just created in the list.

Next, log in to Zimbra Admin UI, click on Aliases and remove
[email protected]
alias. Then run the following on the Sambaserver.

smbpasswd -a root

You need then to grant privileges to the domain admins group.

Run
the
following command as root on your Samba
server. Put your domain name
instead of TM.

Adding
Windows NT/2000/XP machines to Samba domain

Log in to an Windows desktop as a local administrator and join
the
Samba domain the same way you would be joining a Windows domain. You
might need to point your Windows WINS configuration to your Samba server
depending on how your DHCP and DNS servers are configured, you may also
you the same DNS for the Windows as for the servers.