[K12OSN] lessons learned on smb/ldap setup in centos4

Mark Gumprecht gumprechtm at msln.net
Tue Aug 2 13:06:46 UTC 2005


For those interestedin the 4.2.1el smb/ldap setup here's what I've been
able to reproduce. Using Matt's 2.0 alpha version of the installer, and
an install of the 4.2.1EL version of centos4 without the LTSP package.
This is the change I made to the distro_data.pm.

###################################
  "centos4" =>
  {
    # this needs to be set because smbldap-tools-0.8.6-1 puts utilities
in here
    PATH => "/usr/sbin",

    media_mnt_point => { cd => "/media/cd.*", },
    rpms =>
    {
      'perl-Convert-BER-1.31.*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'perl-Unicode-Map8-0.12-*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'perl-Crypt-SmbHash-0.02-*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'perl-Unicode-MapUTF8-1.09-*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'perl-Jcode-0.83-*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'perl-Unicode-String-2.07-*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'perl-Unicode-Map-0.112-*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'smbldap-tools-0.9.1-*.rpm' =>
      {
        medianames => "script",
        path => "PWD/rpms",
      },

      'binutils-2.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'perl-HTML-Tagset-3.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'cpp-3.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'perl-libwww-perl-5.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'perl-URI-1.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'perl-HTML-Parser-3.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'samba-common-3.*.i386.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'samba-3.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'perl-XML-NamespaceSupport-1.*.rpm' =>
      {
        medianames => { cd => "cd #2", },
        path => "Fedora/RPMS/",
      },

      'perl-XML-SAX-0.*.rpm' =>
      {
        medianames => { cd => "cd #2", },
        path => "Fedora/RPMS/",
      },

      'perl-LDAP-0.*.rpm' =>
      {
        medianames => { cd => "cd #2", },
        path => "Fedora/RPMS/",
      },

      'perl-Convert-ASN1-0.*.rpm' =>
      {
        medianames => { cd => "cd #2", },
        path => "Fedora/RPMS/",
      },

      'gcc-3.*.rpm' =>
      {
        medianames => { cd => "cd #3", },
        path => "Fedora/RPMS/",
      },

      'openldap-clients-2.*.rpm' =>
      {
        medianames => { cd => "cd #4", },
        path => "Fedora/RPMS/",
      },

      'glibc-devel-2.*.rpm' =>
      {
        medianames => { cd => "cd #3", },
        path => "Fedora/RPMS/",
      },

      'glibc-headers-2.*.rpm' =>
      {
        medianames => { cd => "cd #3", },
        path => "Fedora/RPMS/",
      },

      'glibc-kernheaders-2.*.rpm' =>
      {
        medianames => { cd => "cd #3", },
        path => "Fedora/RPMS/",
      },

      'openldap-servers-2.*.rpm' =>
      {
        medianames => { cd => "cd #3", },
        path => "Fedora/RPMS/",
      },

      'perl-IO-Socket-SSL-0.*.rpm' =>
      {
        medianames => { cd => "cd #3", },
        path => "Fedora/RPMS/",
      },

      'perl-Digest-SHA1-2.*.rpm' =>
      {
        medianames => { cd => "cd #1", },
        path => "Fedora/RPMS/",
      },

      'perl-Net_SSLeay-1.*.rpm' =>
      {
        medianames => { cd => "cd #4", },
        path => "Fedora/RPMS/",
      },
    },
  }, # end centos4

  ###################################

Then I did the CPAN Bundle::install thing
Next, I ran the script(make all) and noted all the rpms it could not find.
I then Went to the DAG (weirs) Site
http://dag.wieers.com/packages/ 
And downloaded any packages that the script said that were missing and
dependencies that the rpms called for.  Once all the packages were
installed and the script completed successfully, I rebooted.
At this point ldap  seemed to consistantly fail. Go into the 
/etc/openldap/ldap.conf and delete the TLS entry. Then I start ldap,
service ldap start. It then ran fine.
Then continue on with david's directions on testing the install.

THE THINGS THAT GOT ME
1. Firewall & SELinux , I shut them off. I'm not smart enough to get it
to work through the firewall.
2. CUT & PASTE. One would think I would learn by now...DO NOT CUT AND
PASTE. Doing this can sometimes introduce hidden formatting charactors
that will hose you. Thanks to Derek Dresser for pointing that out.
3. The TLS thing being in the ldap.conf file.
4. Originally setting the file server up on a different network. I just
couldn't seem to figure out how to combat that, soooo I reloaded on the
network that it was going to be on and that cured many little issues.
5. Paying attention to were the smbldap tools are located and adjusting
the script and or tools location to make it work.

Hopefully this will help someone else with their install.
Mark

-- 
Mark Gumprecht
Data Systems Specialist
MSAD3
Unity, ME
gumprechtm at msln.net




More information about the K12OSN mailing list