Hi guys, I am trying to migrate my NT 4 users to samba and these are the steps that I used for installing samba. BerkeleyDB ../dist/configure --prefix=/usr make make install MIT Kerberos ./configure --prefix=/usr make make install make check OpenSSL ./config --openssldir=/usr make make install Cyrus SASL cd cyrus-sasl-2.1.19 ./configure --prefix=/usr --with-dbpath=/usr/etc/sasldb2 --with-dblib=berkeley --with-bdb-libdir=/usr/lib --with-bdb-incdir=/usr/include --with-openssl=/usr --with-plugindir=/usr/lib/sasl2 make make install OpenLDAP env CPPFLAGS=”-I/usr/include” LDFLAGS=”-L/usr/lib” ./configure --prefix=/usr --libexecdir=/usr/sbin --libdir=/usr/lib --includedir=/usr/include --with-cyrus-sasl --enable-slapd --enable-slurpd --enable-bdb make depend make make test make install Samba ./configure --prefix=/usr --with-winbind --with-winbind-auth-challenge --with-acl-support --with-ads make make install cp /install/samba-3.0.5/packaging/RedHat/smb.conf /usr/lib Now, after I run the ./smbldap-populate.pl script, i get the following error: Can’t locate Net/LDAP.pm in @INC (@INC contains: /var/lib/samba/sbin/ /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at /var/lib/samba/sbin//smbldap_tools.pm line 5. BEGIN failed—compilation aborted at /var/lib/samba/sbin/smbldap_tools.pm line 5. Compilation failed in require at ./smbldap-populate.pl line 34. BEGIN failed—compilation aborted at ./smbldap-populate.pl line 34 I tried installing the CPAN module too from www.cpan.org, still doesnt help. Can someone throw light on what im missing here ? Regards, Pari Intel Corporation --------------------------------- Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now.
Try #perl -MCPAN -e 'install Net::LDAP' Best Regards, Sp0oKeR On Thu, 12 Aug 2004 12:05:20 -0700 (PDT), Pari <pari005@yahoo.com> wrote:> Hi guys, > > I am trying to migrate my NT 4 users to samba and these are the steps that I used for installing samba. > > BerkeleyDB > ../dist/configure --prefix=/usr > make > make install > > MIT Kerberos > ../configure --prefix=/usr > make > make install > make check > > OpenSSL > ../config --openssldir=/usr > make > make install > > Cyrus SASL > cd cyrus-sasl-2.1.19 > ../configure --prefix=/usr --with-dbpath=/usr/etc/sasldb2 --with-dblib=berkeley --with-bdb-libdir=/usr/lib --with-bdb-incdir=/usr/include --with-openssl=/usr --with-plugindir=/usr/lib/sasl2 > make > make install > > OpenLDAP > env CPPFLAGS=?-I/usr/include? LDFLAGS=?-L/usr/lib? ./configure --prefix=/usr --libexecdir=/usr/sbin --libdir=/usr/lib --includedir=/usr/include --with-cyrus-sasl --enable-slapd --enable-slurpd --enable-bdb > make depend > make > make test > make install > > Samba > ../configure --prefix=/usr --with-winbind --with-winbind-auth-challenge --with-acl-support --with-ads > make > make install > cp /install/samba-3.0.5/packaging/RedHat/smb.conf /usr/lib > > Now, after I run the ./smbldap-populate.pl script, i get the following error: > > Can?t locate Net/LDAP.pm in @INC (@INC contains: /var/lib/samba/sbin/ /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl .) at /var/lib/samba/sbin//smbldap_tools.pm line 5. > BEGIN failed?compilation aborted at /var/lib/samba/sbin/smbldap_tools.pm line 5. > Compilation failed in require at ./smbldap-populate.pl line 34. > BEGIN failed?compilation aborted at ./smbldap-populate.pl line 34 > > I tried installing the CPAN module too from www.cpan.org, still doesnt help. > > Can someone throw light on what im missing here ? > > Regards, > Pari > Intel Corporation > > > --------------------------------- > Do you Yahoo!? > Express yourself with Y! Messenger! Free. Download now. > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >-- ======================== Sp0oKeR Labs spooker@spooker.com.br http://www.spooker.com.br =========================
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 | Subject: | Re: [Samba] Can't locate Net/LDAP.pm in @INC | From: | Paul Gienger <pgienger@ae-solutions.com> | Date: | Thu, 12 Aug 2004 14:36:34 -0500 | To: | Sp0oKeR Labs <spooker@gmail.com> | CC: | samba@lists.samba.org, Pari <pari005@yahoo.com> | | Sp0oKeR Labs wrote: | |> Try |> #perl -MCPAN -e 'install Net::LDAP' |> |> | Perhaps a more universal answer for posterity... | | The smbldap-tools package requires that you have LDAP support in your | perl installation. If you are using an RPM based linux distribution | you could try to search your RPM repository for a perl-ldap package | (Fedora Core 2 has one, that's the only linux distro I have on hand | ATM) since it's better to use rpm whenever you can in a rpm system. | This will also make sure that you get the module where the system | wants it as apparently you may be having a problem there. If the answer wil lbe for posterity: 1)Mandrake has included the smbldap-tools as part of samba since about 2.2.5 2)perl-ldap has been in main since about Mandrake 9.1 3)samba-ldap mostly works out-the-box since 10.0 (which is when samba3 moved to main),since perl-ldap is required by samba-server. Just uncomment the sample configurations in the provided smb.conf, change the values in /etc/samba/smbldap_conf.pm to your liking, run smbpasswd - -w $password, and smbldap-populate. Look for more features in the new version of Mandrake Corporate server ... 4)Fedora 2's perl-ldap packages seem not to have SSL support (since some perl SSL modules are not provided), meaning a wonderful security hole unless you install the required packages manually. Regards, Buchan - -- Buchan Milne Senior Support Technician Obsidian Systems http://www.obsidian.co.za B.Eng RHCE (803004789010797) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBHO4drJK6UGDSBKcRAgVNAKDKStjBm57/k+fTVFFsiuAWOw2CHQCeJkzj /Ci8giNdbXasR8fiWRrFa2Q=ZrgA -----END PGP SIGNATURE-----