Advanced Samba
Maintainer
Description
Advanced Samba is a SME Server contrib to extend SME Servers Samba functionality to support all standard Windows server roles. Out-of-the-box, SME Server supports workgroup and primary domain controller (PDC) server roles. These, out-of-the-box, server roles address many Windows Network needs, but they do not provide all of the functionality available to todays typical Windows Server.
This document provides procedural and SME Server specific RPM(s) to configure SME Server to function in all mainstream Windows server roles:
Domain member
In this server role, SME Server will present ibays to a domain as Windows network shares, relying on a separate domain controller for client/user authentication. That is, authenticated Windows network users can access ibays on SME Server domain member machines without needing a local user account.
Backup domain controller
In this server role, SME Server will provide all functionality available as a domain member, but it can also take over the role as the domain controller if certain network conditions exist. As with the domain member server role, it is not necessary for the network administrator to create user accounts on the SME Server backup domain controller machine. SME Server, in this server role, will maintain (or replicate) a local copy of user/client authentication information from the primary domain controller in the event that it needs to take on the role of primary domain controller.
Active Directory domain controller
This server role is very similar to the out-of-the-box SME server role primary domain controller. In addition to those functions provided by the PDC, the SME Server Active Directory domain controller will maintain a directory of Windows Active Directory services.
Active Directory domain member
This server role is nearly identical to the domain member server role except that in this server role, SME Server will have access to Active Directory services provided by an Active Directory server.
It should be noted that this contrib is a work in progress. Preliminary support is provided for all Server Roles and full support for a selection of them, as detailed below. In time, all server roles listed here in will be fully supported by this contrib.
Prerequisites
The current releases of SME do not support Samba Server Roles directly. Modification of several core SME packages is required to support Samba Server Roles, therefore it is not possible to provide Advanced Samba functions with a typical Contrib RPM.
An effort to update the necessary Core SME packages is being tracked in the following SME bug report: http://bugs.contribs.org/show_bug.cgi?id=4172
It is the Maintainers opinion that these changes will ultimately be included in the core SME packages. When this occurs, it is very likely that this section of this contrib will go away.
Until these changes are incorporated into the core packages, patched versions of the current release SME packages will be provided as part of this contrib. It is necessary that users install these "patched" core packages to take advantage of Samba Server Roles. EVERY effort is made to provide this additional functionality without changing standard SME functionality. In other words, the patched core SME packages will not change they way SME currently functions -- the modified core packages simply provide the additional Server Role functionality.
Install necessary patched packages
1. Download the patched Server Role RPMs from my contribs repository to your local machine: http://mirror.contribs.org/contribs/gzartman/Contribs/7/Samba/
2. Install the patched rpms:
yum localinstall *.rpm
3. Reconfigure and reboot machine:
signal-event post-upgrade; signal-event reboot.
Install Advanced Samba RPMS
It is necessary to install one addition RPM prior to configuring SME Server in advanced server roles. This package provides necessary Samba functionality that may not be available in Core SME packages:
1. Download smeserver-adv-samba package to your local machine:
wget http://mirror.contribs.org/releases/7/smecontribs/i386/RPMS/smeserver-adv-samba-0.1.0-2.el4.sme.noarch.rpm
2. Install package:
yum local install smeserver-adv-samba*
3. Reconfigure machine:
signal-event post-upgrade; signal-event reboot
Configure Server Roles
As most of those familiar with SME Server know, much of configuration (management) of the SME Server can be done through the Server Manager. The current SME Server Manager provides a panel, Workgroup, which provides the Administrator the ability to configure SME Server as either a Workgroup Server of a Primary Domain Controller. NOTHING presented in this Contrib (software or documentation) will change this. We have worked to provide seamless integration of new functionality with the current SME Server -- nothing will change if you desire to stick with the standard options.
However, further functionality with respect to Samba Server Roles is provided via shell command line options (Note: It is this authors desire to add further functionality to the Server Manager with respect to Server Roles -- perhaps it will happen one day. I do understand the Development Teams desire to take a conservative stance on functionality)
Advanced Samba Server Role Support is provided as follows:
Workgroup Server
This Server Role configures SME Server to function as a member of a MS Windows Peer-To-Peer network. In order to access network shares on the SME machine when it is configured in this Server Role, users/clients must have local user accounts on the SME machine. This is the simplest of MS Network configurations. In this Server Role, SME will act as a typical Windows Client (e.g., Win 95, Win XP, Win 2000, etc.)
Configuration
Currently supported via the standard Server Manager Panel
Primary Domain Controller
This Server Role configures SME Server to function as a Windows NT4 type Domain Controller.
Configuration
Currently supported via the standard Server Manager Panel
Domain Member
In this Server Mode, SME Server will act as a File and/or Print Server to an existing Windows Network Domain. User/Client accounts on the local machine are not required to access Domain Member resources (shares). Ibays created will be presented as standard Windows shares.
Configuration
1. Open a shell (bash) session and log into your SME box with root access.
2. At the bash prompt:
config setprop smb ServerName machine_name_of_domain_member_box
3. At the bash prompt:
config setprop smb ServerRole DM
4. At the bash prompt:
config setprop smb WINSServer ip_address_of_domain_PDC
5. Verify settings:
config show smb
Should show you an output similar to this:
[root@testbed ~]# config show smb smb=service DeadTime=10080 DomainMaster=no KeepVersions=disabled OpLocks=enabled OsLevel=35 RecycleBin=disabled RoamingProfiles=no ServerName=testbed2 ServerRole=DM ShadowCount=10 ShadowDir=/home/e-smith/files/.shadow UnixCharSet=UTF8 UseClientDriver=yes WINSServer=90.0.0.20 Workgroup=lei-salem status=enabled
6. At bash prompt:
signal-event workgroup-update
For example:
[root@testbed2 ~]# signal-event workgroup-update
7. At the bash prompt:
net rpc join -U pdc_admin_username%pdc_admin_password
Output:
[root@testbed2 ~]# net rpc join -U admin%pdc_admin_password Joined domain LEI-SALEM. [root@testbed2 ~]#
8. At the bash prompt:
signal-event workgroup-update.
Your SME Domain Client box shares should now be accessable.
Backup Domain Controller
Preliminary support for this Server Role Only. DO NOT TO ATTEMPT to deploy this Server Role on SME Server unless you are very experienced with SME Server.
SME Server support for this Server Role is coming soon.
Please report all bugs and comments to the bug tracker. Thank you.
Active Directory Domain Controller
Preliminary support for this Server Role Only. DO NOT TO ATTEMPT to deploy this Server Role on SME Server unless you are very experienced with SME Server.
SME Server support for this Server Role is coming soon.
Please report all bugs and comments to the bug tracker. Thank you.
Active Directory Domain Member
Preliminary support for this Server Role Only. DO NOT TO ATTEMPT to deploy this Server Role on SME Server unless you are very experienced with SME Server.
SME Server support for this Server Role is coming soon.
Please report all bugs and comments to the bug tracker. Thank you.
Known Issues
TO DO
Bugs
Please raise bugs under the SME-Contribs section in bugzilla .