[K12OSN] Re: SMBLDAP Installer

Mel Wade mel at melwade.com
Mon Jul 30 18:12:33 UTC 2007


I got around this by removing perl-LDAP and then reinstalling the smbldap
tool.

Now I get this error message:

Can't locate Crypt/SmbHash.pm in @INC (@INC contains: /usr/sbin/
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/5.8.8 .) at /usr/sbin//smbldap_tools.pm line 5, <DATA> line
225.
BEGIN failed--compilation aborted at /usr/sbin//smbldap_tools.pm line 5,
<DATA> line 225.
Compilation failed in require at /usr/sbin/smbldap-populate line 35, <DATA>
line 225.
BEGIN failed--compilation aborted at /usr/sbin/smbldap-populate line 35,
<DATA> line 225.
failure!
I'm stopping here because this is bad.
Correct the error by hand and re-run this script.


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



-- 
Mel Wade
"The real problem is not whether machines think but whether men do." - BF
Skinner
http://www.melwade.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/k12osn/attachments/20070730/3dc53a92/attachment.htm>


More information about the K12OSN mailing list