<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Remote Samba server with PDC authentication</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Remote Samba server with PDC authentication</h1>
</div>
<div id="content">



<div class="wikitext"><h2>Remote Samba server with PDC authentication</h2>
<div class="plugin tightenable" id="CommentPlugin464"></div>
<hr />
<h3>Samba</h3>
<p class="tightenable top bottom">SME Versions Supported:<b> v5.x </b> - - Contribs.org <a href="Certification%20Process.html" class="named-wiki" title="Certification Process">certified</a> on:<b> v </b></p>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable top bottom"><th><i>Nav Bar</i></th>
<th><a href="Documentation.html" class="wiki">Documentation</a></th>
<th><a href="How-to%20Classification.html" class="wiki">How-to Classification</a></th>
<th><a href="Samba.html" class="wiki">Samba</a></th>
<td>Remote Samba server with PDC authentication</td>
</tr>
<tr class="tightenable top"><th><i>Comments</i></th>
<td colspan="4"><a href="Remote%20Samba%20server%20with%20PDC%20authentication%20Feedback.html" class="named-wiki" title="Remote Samba server with PDC authentication Feedback">Please add your comments about this How To</a> <br /></td>
</tr>
</table>
<p class="tightenable">Author(s):   <b> Sean Gray </b> <br />
Contributor(s):   <b>  </b> <br />
License: <b>GPL</b> <br /></p>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable bottom"><th>Created:</th>
<th><i>date</i></th>
<th>Last updated:</th>
<td>date</td>
</tr>
</table>
<p class="tightenable top bottom"><i>This wiki page has been prepared by Contribs Doc Team</i></p>
<hr />
<h3>About this How To</h3>
<p class="tightenable top"><b>Summary:</b> Remote Samba server with PDC authentication. Sets up a remote E-smith box to coallate browse lists and passes authentication to the E-smith PDC at the main site. <br /></p>
<p class="tightenable"><b>Keywords:</b> Samba, PDC <br /></p>
<p class="tightenable"><b>Tips:</b> <br /></p>
<p class="tightenable"><b>Known Limitations and Caveats:</b> Users and Groups need to exist locally in order to browse locally</p>
<p class="tightenable"><b>Note:</b> This is a .sh bash script and not a How To, although it is so clear in its organization that it is like one. It was listed in the &quot;Contributed HOWTO Documents&quot; at e-smith.org. It looks like one would run the script on a system intended to become a BDC (with associated dependant network)and tie into a situation where a PDC+network already exists. The entire script is quoted below. If anyone cares to provide a fuller description of its purpose and application, we will post it here. Thanks! <br /></p>
<p class="tightenable bottom"><b>Downloads:</b> <a href="http://www.e-smith.org/docs/howto/contrib/sambapdc.sh%%%" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.e-smith.org/docs/howto/contrib/sambapdc.sh%%%</span></a></p>
<hr />
<h3>How To</h3>
<pre class="tightenable top bottom">
#!/bin/bash
# Author: Sean Gray &lt;me@seangray.com&gt;
# Title: Remote Samba server with PDC authentication
# Name: remotesamba
# E-smith Release: 5.*
# License: GPL
# Description: Sets up a remote E-smith box to coallate browse lists and passes
# authentication to the E-smith PDC at the main site.
# Notes: Why do this?
#   My client  needed a way to improve network performance at a remote location
# connected via vpn. I decided to add a second samba box at the remote site and
# chose E-smith for the easy administration. Most of the file serving is from
# the main site with only a small number of users wanting to put files on the
# remote server, in fact it was some Access database stuff that would have been
# really slow across the WAN. We also wanted to keep most if not all of the
# administration at the main site.
#   Our performance increase comes mainly through squid in a double proxy
# configuration. First the remote side proxies through the E-smith and it's
# parent is the E-smith at the main site. This also gives us the bonus of
# forcing the remote users to authenticate to the proxy and have their content
# filtered like the main site.
#   Network browsing is also much better. With this configuration both sides
# of the WAN can browse all machines in the Network Ghetto. In addition, all
# authentication is done from the main site as well as logon scripts etc.
# The only gotcha is with file sharing on the remote E-smith. Even though the
# E-smith at the main site will authenticate users to the remote E-smith, the
# Unix permissions are such that users and/or groups have to exist locally in
# order to use the resource. I have given a little thought to this and it
# should be possible using such tools as rsync, NIS, or LDAP. Maybe the Mitel
# folks could give us LDAP authentication in 6.0 as a Christmas present :)
# For my purposes here since we only have a small portion of the remote user
# base sharing common files we will just add the ten or fifteen users manually
# to the remote E-smith.
#
# Copy this file to your remote E-smith, make it executable and run it.
# Define the following variable for your setup, or run the commands at the
# command line.
#
DOMAIN=FUNKYDOM                 # Windows domain name
SAMBAPDC=EUSTACE                # Main site E-smith
SAMBAPDCIP=172.16.3.10          # Main site E-smith IP address
ADMINPASS=hackme123             # Admin password (don't leave it in here after!)

# MAIN SERVER SIDE INSTRUCTIONS
# Do nothing!
#
# REMOTE SERVER SIDE
# Setup in workgroup mode through server manager.
#
# Join domain...
smbpasswd -j $DOMAIN -r $SAMBAPDC -U admin%$ADMINPASS

# Make directory for custom fragments and go there...
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf
cd /etc/e-smith/templates-custom/etc/smb.conf

# Make fragments...
echo &quot;domain master = no&quot; &gt; 11domainMaster
echo &quot;guest ok = yes&quot; &gt; 11guestOk
echo &quot;local master = yes&quot; &gt; 11localMaster
echo &quot;os level = 65&quot; &gt; 11osLevel
echo &quot;password server = $SAMBAPDC&quot; &gt; 11passwordServer
echo &quot;preferred master = yes&quot; &gt; 11preferredMaster
echo &quot;security = domain&quot; &gt; 11security
echo &quot;&quot; &gt; 11smbPasswdFile
echo &quot;wins server = $SAMBAPDCIP&quot; &gt; 11winsServer

# We should really be able to set our WINS support status or address with the
following command:
# /sbin/e-smith/db dbfile setprop smb WINSServer $SAMBAPDCIP
# But on my install it did not work. This sucks because it forces us to edit
dhcpd.conf fragments as well.

# Make directory for custom fragments and go there...
mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf
cd /etc/e-smith/templates-custom/etc/dhcpd.conf

# Make fragments...
echo &quot;    option netbios-dd-server    $SAMBAPDCIP;&quot; &gt; 25NetbiosDDServer
echo &quot;    option netbios-name-servers $SAMBAPDCIP;&quot; &gt; 25NetbiosNameServers
echo &quot;    option netbios-node-type    8;&quot; &gt; 25NetbiosNodeType

# Expand templates...
/sbin/e-smith/expand-template /etc/smb.conf
/sbin/e-smith/expand-template /etc/dhcpd.conf

# Restart daemons
/etc/init.d/smbd restart
/etc/init.d/dhcpd restart
exit
</pre>
<p class="tightenable top bottom"><br /> <br /></p>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable top bottom"><th><i>Nav Bar</i></th>
<th><a href="Documentation.html" class="wiki">Documentation</a></th>
<th><a href="How-to%20Classification.html" class="wiki">How-to Classification</a></th>
<th><a href="Samba.html" class="wiki">Samba</a></th>
<td>Remote Samba server with PDC authentication</td>
</tr>
<tr class="tightenable top bottom"><th><i>Comments</i></th>
<td colspan="4"><a href="Remote%20Samba%20server%20with%20PDC%20authentication%20Feedback.html" class="named-wiki" title="Remote Samba server with PDC authentication Feedback">Please add your comments about this How To</a></td>
</tr>
</table>
<hr />
<h3>Feedback</h3>
<p class="tightenable top bottom"><a href="Remote%20Samba%20server%20with%20PDC%20authentication%20Feedback.html" class="wiki">Remote Samba server with PDC authentication Feedback</a> Add your comments to this page.
<br /> <br /></p>
<span class="plugin" id="CommentPlugin465"></span><p class="tightenable top bottom"><br /> <br /></p>
<hr />
<h3>Wiki Links List</h3>
<span class="plugin" id="BackLinksPlugin242"><table cellpadding="0" cellspacing="1" border="0" class="pagelist" width="100%" summary="Columns: Page Name, Hits.">
<caption align="top">
Those pages link to <a href="Remote%20Samba%20server%20with%20PDC%20authentication.html" class="wiki">Remote Samba server with PDC authentication</a>:</caption>
<colgroup span="2"></colgroup>
<thead>
<tr>
<th align="center" valign="middle" class="gridbutton"><a href="Remote%20Samba%20server%20with%20PDC%20authentication.html?directory=%2Ftmp%2Fwikidumphtml&amp;sortby=%2Bpagename&amp;id=277" class="gridbutton" title="Click to sort by pagename">&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;Page Name&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;</a></th>
<th align="center" valign="middle" class="gridbutton"><a href="Remote%20Samba%20server%20with%20PDC%20authentication.html?directory=%2Ftmp%2Fwikidumphtml&amp;sortby=-hits&amp;id=277" class="gridbutton" title="Click to sort by hits">&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;Hits&nbsp;<img src="images/buttons/no_order.png" width="7" height="7" border="0" alt="." />&nbsp;</a></th>
</tr>
</thead>
<tbody>
<tr class="evenrow">
<td>&nbsp;<a href="Remote%20Samba%20server%20with%20PDC%20authentication%20Feedback.html" class="wiki">Remote Samba server with PDC authentication Feedback</a>&nbsp;</td>
<td align="right">&nbsp;441&nbsp;</td>
</tr>
<tr class="evenrow">
<td>&nbsp;<a href="Samba.html" class="wiki">Samba</a>&nbsp;</td>
<td align="right">&nbsp;3593&nbsp;</td>
</tr>
</tbody>
</table>
</span></div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;RonM&quot;  Last edited on February 28, 2004 12:16 pm by &quot;RonM&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
