I followed these instructions and then ran the smbldap script and got the following error:<br><br>"smbldap-populate is not in my $PATH."<br><br>I found smbldap-populate in this location:  <br>/usr/share/doc/samba-
3.0.23c/LDAP/smbldap-tools-0.9.2<br>and added it to the path, but no dice....<br><br>Mel<br><br><div><span class="gmail_quote">On 7/27/07, <b class="gmail_sendername">Brian Chivers</b> <<a href="mailto:brian@portsmouth-college.ac.uk">
brian@portsmouth-college.ac.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I've not actually run the script on CentOS5 but I've used it's contents to setup several Samba /
<br>LDAP slave servers in college.<br><br>Here's a copy of my notes from our WIKI, once you've manually install the extra packages etc you<br>could try running the installer script again but telling it that it's 
CentOS4.4.<br><br>The notes are for installing on a x86_64 machine so things like the rpmforge-release you might have<br>to install the correct package for x386 but it'll give you a guide / idea.<br><br>I do have to replace our main LDAP / Samba 3 server this summer so when I do I'll try and tweak the
<br>script to work out the box.<br><br><br><br>  ProtectBase<br><br>You should make sure that you have ProtectBase installed. yum-protectbase is available in the CentOS<br>5 repositories:<br><br>    yum install yum-protectbase
<br><br>Plugins are enabled in CentOS 5 by default.<br><br>Edit the file /etc/yum.repos.d/CentOS-Base.repo and add the following line to the [base] and<br>[update] and [centosplus] section:<br><br>     protect=1<br><br>Leave the [centosplus] section disabled:
<br><br>     enabled=0<br><br>Edit /etc/yum.repos.d/CentOS-Base.repo and add the following line to the other sections<br><br>     protect=0<br><br>Download the rpmforge-release package.<br><br>     wget <a href="http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm">
http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm</a><br><br>(You can find a complete list of rpmforge-release package packages at<br><a href="http://dag.wieers.com/packages/rpmforge-release/">
http://dag.wieers.com/packages/rpmforge-release/</a> but it is recommended that you use one of the two<br>listed above).<br><br>Install DAG's GPG key<br><br>     rpm --import <a href="http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt">
http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt</a><br><br>Verify the package you have downloaded<br><br>     rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm<br><br>Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as
<br>you have verified the package and trust Dag then it should be safe.<br><br>Install the package<br><br>    rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm<br><br>This will add a yum repository config file and import the appropriate GPG keys.
<br><br>Test with this command:<br><br>    yum check-update<br><br>It should output these two lines:<br><br>Loading "protectbase" plugin ... 76 packages excluded due to repository protections<br><br>The number above may differ, but there should be several packages shown as being excluded.
<br><br><br>[edit]<br>Install Extra Packages<br><br>    yum install ntp<br>    yum install apcupsd<br><br>Install needed rpms for Samba3 / Openldap (found from Smbldap installer script)<br><br>    yum install perl-XML-SAX-Base perl-Unicode-String perl-IO-Socket-SSL perl-Crypt-SmbHash
<br>perl-Convert-BER<br><br>Install actual servers & dependants<br><br>   yum install perl-URI perl-Convert-ASN1 perl-libwww-perl<br>   yum install perl-XML-NamespaceSupport perl-URI perl-Crypt-SSLeay<br>   yum install perl-Digest-SHA1 perl-LDAP
<br>   yum install gcc glibc-headers<br>   yum install openldap-servers openldap-clients<br>   yum install samba-common samba<br>   yum install apcupsd<br>   yum install net-snmp<br><br><br>Install Webmin for easy configuration (example below is current version but visit 
<a href="http://www.webmin.com">www.webmin.com</a> for<br>latest version)<br><br>   wget <a href="http://prdownloads.sourceforge.net/webadmin/webmin-1.340-1.noarch.rpm">http://prdownloads.sourceforge.net/webadmin/webmin-1.340-1.noarch.rpm
</a><br>   rpm -U webmin-1.340-1.noarch.rpm<br><br><br>Mel Wade wrote:<br>> I'm also getting this error:<br>><br>> Error getting repository data for dag, repository not found<br>><br>> I think it's coming from:  --enablerepo=dag
<br>><br>> On 7/26/07, * Mel Wade* <<a href="mailto:mel@melwade.com">mel@melwade.com</a> <mailto:<a href="mailto:mel@melwade.com">mel@melwade.com</a>>> wrote:<br>><br>>     Can anyone help be get the smbldap installer to work on CentOS 5?
<br>>     It will work on version 4.4 but 4.4 won't reconize my RAID controller.<br>>     <a href="http://www.majen.net/smbldap/">http://www.majen.net/smbldap/</a><br>><br>>     I know I'm getting these errors:
<br>>     *smbldap-populate is not in my $PATH<br>>     *rpm --import usr/share/doc/rpm-4.4.2/RPM-GPG-KEY - not there...<br>><br>>     Any help would be appreciated:<br>><br>>     Mel<br>><br>>     Here is the OS specific section of the script:
<br>><br>>     ##############<br>>       "centos44" =><br>>       {<br>>         # this needs to be set because smbldap-tools-0.8.6-1 puts<br>>     utilities in here<br>>         PATH => "/opt/IDEALX/sbin",
<br>><br>>         netrepo_command => "rpm --import /usr/share/rhn/RPM-GPG-KEY; yum<br>>     -t -y install gcc glibc-headers openldap-servers openldap-clients<br>>     perl-XML-SAX perl-URI perl-Convert-ASN1 perl-Net-SSLeay
<br>>     perl-XML-NamespaceSupport perl-URI perl-Crypt-SSLeay<br>>     perl-libwww-perl perl-HTML-Parser perl-Digest-SHA1 samba-common<br>>     perl-HTML-Tagset perl-Net-SSLeay samba perl-LDAP; yum -t -y<br>>     --enablerepo=dag install perl-Compress-Zlib",
<br>><br>>         rpms =><br>>         {<br>>           'perl-Convert-BER-1.31.01-1.1.fc2.dag.noarch.rpm' =><br>>           {<br>>             medianames => "script",<br>>             path => "PWD/rpms",
<br>>           },<br>><br>>           'perl-Unicode-Map8-0.12-0.1.fc2.dag.i386.rpm' =><br>>           {<br>>             medianames => "script",<br>>             path => "PWD/rpms",
<br>>           },<br>><br>>           'perl-Crypt-SmbHash-0.02-1.1.fc2.dag.noarch.rpm ' =><br>>           {<br>>             medianames => "script",<br>>             path => "PWD/rpms",
<br>>           },<br>><br>>           'perl-Unicode-MapUTF8-1.09-0.1.fc2.dag.i386.rpm' =><br>>           {<br>>             medianames => "script",<br>>             path => "PWD/rpms",
<br>>           },<br>><br>>           'perl-Jcode-0.83-0.1.fc2.dag.i386.rpm' =><br>>           {<br>>             medianames => "script",<br>>             path => "PWD/rpms",
<br>>           },<br>><br>>           'perl-Unicode-String-2.07-0.1.fc2.dag.i386.rpm' =><br>>           {<br>>             medianames => "script",<br>>             path => "PWD/rpms",
<br>>           },<br>><br>>           ' perl-Unicode-Map-0.112-0.1.fc2.dag.i386.rpm' =><br>>           {<br>>             medianames => "script",<br>>             path => "PWD/rpms",
<br>>           },<br>><br>>         },<br>><br>>       }, # end centos44<br>>     #############<br>><br>>     --<br>>     Mel Wade<br>>     "The real problem is not whether machines think but whether men do."
<br>>     - BF Skinner<br>>     <a href="http://www.melwade.com">http://www.melwade.com</a><br>><br>><br>><br>><br>> --<br>> Mel Wade<br>> "The real problem is not whether machines think but whether men do." -
<br>> BF Skinner<br>> <a href="http://www.melwade.com">http://www.melwade.com</a><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> K12OSN mailing list<br>> <a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/k12osn">https://www.redhat.com/mailman/listinfo/k12osn</a><br>> For more info see <
<a href="http://www.k12os.org">http://www.k12os.org</a>><br><br><br>------------------------------------------------------------------------------------------------<br>    The views expressed here are my own and not necessarily
<br><br>                the views of Portsmouth College<br><br>_______________________________________________<br>K12OSN mailing list<br><a href="mailto:K12OSN@redhat.com">K12OSN@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/k12osn">
https://www.redhat.com/mailman/listinfo/k12osn</a><br>For more info see <<a href="http://www.k12os.org">http://www.k12os.org</a>><br></blockquote></div><br><br clear="all"><br>-- <br>Mel Wade<br>"The real problem is not whether machines think but whether men do." - BF Skinner
<br><a href="http://www.melwade.com">http://www.melwade.com</a><br>