***********************************************************************
**** UPDATE *****
****Wiki Article Of This Topic Created Here:
http://wiki.contribs.org/Advanced_Samba *****
***********************************************************************
I've created an rpm, and updates to existing sme core rpms, to extend SME Servers Samba functionality. This effort is tracked in the SME bug tracker under the following two bug reports:
http://bugs.contribs.org/show_bug.cgi?id=4172http://bugs.contribs.org/show_bug.cgi?id=4196In a nutshell, these packages allow SME to function in a variety of server modes. Currently supported by these packages are the server modes: Workgroup server, Primary Domain Controller, and Domain Member. Preliminary support is available for Backup Domain Controller, Active Directory Domain Controller, and Active Directory Member.
Of specific interest is the server mode Domain Member (new to SME). SME as a Domain Member allows SME to offer ibays as shares in a Windows Domain while relying on another SME box configured as a PDC or a Windows box configured as a PDC for authentication. In other words, there is no need to setup user accounts on the SME box configured as a Domain Member to access shares on this box.
Current versions of the smeserver-adv-samba package can be found on the mirrors in the contribs dir:
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smecontribs/i386/RPMS/(Please note that you must install version 0.1.0-2 or great for this package to function properly).
smeserver-adv-samba-0.1.0-2 and greater relies on changes to several core SME packages. I have provided these changes as patches in the bug tracker:
http://bugs.contribs.org/show_bug.cgi?id=4172. I am working with the devteam to get these changes pushed to the core packages. In the interim, I have rolled a forked version of the necessary SME packages and uploaded them to my contribs space here:
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/gzartman/Contribs/7/Samba/Prior to installing smeserver-adv-samba, you will need to install my forked core packages. I will continue to patch the core packages as need to support smeserver-adv-samba until the patches make it into the core distribution (which I feel they ultimately will).
NOTE: These packages do not change any current SME functionlity. SME will continue to function as it always has, however addition Samba function is provided via command line options.
Procedure:
1. Download my forked SME core packages located in my contribs dir,
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/gzartman/Contribs/7/Samba/, to your system.
2. Install the core forked packages using the command: yum localinstall *.rpm.
3. Download smeserver-adv-samba-0.1.0-2 or greater from the mirrors to your local system:
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smecontribs/i386/RPMS/4. Install smeserver-adv-samba: yum localinstall smeserver-adv-samba*
5. Issue the events: signal-event post-upgrade followed by signal-event reboot.
To configure SME as a Domain Member:
1. SSH into your SME box.
2. At the bash prompt: config setprop smb Workgroup your_domain_name
3. At the bash prompt: config setprop smb ServerName machine_name_for_domain_member_box
4. At the bash prompt: config setprop smb ServerRole DM
5. At the bash prompt: config setprop smb WINSServer ip_address_of_domain_PDC
6. Verify settings. At bash prompt: config show smb:
[root@testbed2 ~]# 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
7. At bash prompt: signal-event workgroup-update
8. Join the domain. At the bash prompt: net rpc join -U admin%pdc_admin_password
[root@testbed2 ~]# net rpc join -U admin%pdc_admin_password
Joined domain LEI-SALEM.
[root@testbed2 ~]#
Note: You will need the admin password from your PDC to complete this step.
9. At the bash prompt: signal-event workgroup-update.
The shares on your Domain Member box will now be accessible by authenticated domain members clients/users.
In time, I will work to provide full support for the Backup Domain Controller, Active Directory Domain Controller, and Active Directory Member Server Roles.
Thank you.
Greg J. Zartman