smbldap-tools003.html   [plain text]


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.06">
<TITLE>
 Installation
</TITLE>
</HEAD>
<BODY >
<A HREF="smbldap-tools002.html"><IMG SRC ="previous_motif.gif" ALT="Précédent"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Remonter"></A>
<A HREF="smbldap-tools004.html"><IMG SRC ="next_motif.gif" ALT="Suivant"></A>
<HR>

<H2><A NAME="htoc5">2</A>&nbsp;&nbsp;Installation</H2><UL>
<LI><A HREF="smbldap-tools003.html#toc4"> Requirements</A>
<LI><A HREF="smbldap-tools003.html#toc5"> Installation</A>
</UL>

<A NAME="toc4"></A>
<H3><A NAME="htoc6">2.1</A>&nbsp;&nbsp;Requirements</H3>
The main requirement for using smbldap-tools are the two perl module:
Net::LDAP and Crypt::SmbHash.
In most cases, you'll also need the IO-Socket-SSL Perl module to use
TLS functionnality.<BR>
<BR>
If you want samba to call the scripts so that you can use the User
Manager (or any other) under MS-Windows (to add, delete modify users and
groups), <FONT COLOR=purple>Samba</FONT> must be installed on the same computer.
Finally, <FONT COLOR=purple>OpenLDAP</FONT> can be installed on any computer. Please check that it
can be contacted by a standard LDAP client software.<BR>
<BR>
<FONT COLOR=purple>Samba</FONT> and <FONT COLOR=purple>OpenLDAP</FONT> installations will not be discussed
here. You can consult the howto also available on the
project page (<TT>http://samba.IDEALX.org</TT>). Altought is has been
written for Samba2, most of its content still apply to Samba3. The main
difference stands in LDAP schema's definitions.<BR>
<BR>
<A NAME="toc5"></A>
<H3><A NAME="htoc7">2.2</A>&nbsp;&nbsp;Installation</H3>
An archive of the <FONT COLOR=purple>smbldap-tools</FONT> scripts can be downloaded on our project
page <TT>http://samba.IDEALX.org/</TT>. Archive and RedHat packages are
available.
<BR>
If you are upgrading, look at the <TT>INSTALL</TT> file or read the link
<A HREF="smbldap-tools007.html#faq::error::add::user">6.13</A>.<BR>
<BR>

<H4><A NAME="htoc8">2.2.1</A>&nbsp;&nbsp;Installing from rpm</H4>
To install the scripts on a RedHat system, download the RPM
package and run the following command:
<PRE>
rpm -Uvh smbldap-tools-0.8.5-1.i386.rpm
</PRE>

<H4><A NAME="htoc9">2.2.2</A>&nbsp;&nbsp;Installing from a tarball</H4>
On non RedHat system, download a source archive of the scripts. The current
archive is <TT>smbldap-tools-0.8.5.tar.gz</TT>.
Uncompress it and copy all of the Perl scripts in <TT>/usr/local/sbin</TT>
directory, and the two configuration files in
<TT>/etc/opt/IDEALX/smbldap-tools/</TT> directory:
<PRE>
mkdir /etc/opt/IDEALX/smbldap-tools/
cp *.conf /etc/opt/IDEALX/smbldap-tools/
cp smbldap-* /usr/local/sbin/
</PRE>
The configuration is now based on two differents files:
<UL><LI>
<TT>smbldap.conf</TT>: define global parameter
<LI><TT>smbldap_bind.conf</TT>: define an administrative account to
 bind to the directory
</UL>
The second file <B>must</B> be readable only for 'root', as it contains
credentials allowing modifications on all the directory. Make sure the
files are protected by running the following commands:
<PRE>
chmod 644 /etc/opt/IDEALX/smbldap-tools/smbldap.conf
chmod 600 /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf
</PRE> <HR>
<A HREF="smbldap-tools002.html"><IMG SRC ="previous_motif.gif" ALT="Précédent"></A>
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Remonter"></A>
<A HREF="smbldap-tools004.html"><IMG SRC ="next_motif.gif" ALT="Suivant"></A>
</BODY>
</HTML>