LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   smbldap_tools.pm problem. . . (https://www.linuxquestions.org/questions/linux-networking-3/smbldap_tools-pm-problem-198202/)

alypius 06-27-2004 02:31 AM

smbldap_tools.pm problem. . .
 
I'm trying to setup a samba pdc with an openldap backend and I think I've got openldap installed properly, but when I run the command smbldap-useradd I get this output:

Linux 2.4.20.
root@osiris:~# /usr/local/sbin/smbldap-useradd alex
Can't locate object method "new" via package "Net::LDAP" (perhaps you forgot to load "Net::LDAP"?) at /usr/local/sbin//smbldap_tools.pm line 176.

I'm running Slackware 9.0. . . I tried installing the perl module package perl-ldap to fix this, but it hasn't worked. What would be causing this?

david_ross 06-27-2004 07:47 AM

Try installing with CPAN. As root run:
perl -eshell -MCPAN

If you haven't done this before you will need to go through the configuration - the defaults should be fine, just pick mirrors near you.

Then to install Net::LDAP run:
install Net::LDAP

To exit out of CPAN type "exit" then retry the script.

alypius 06-27-2004 03:26 PM

I've tried that and I get the same error. Is there a way that I can uninstall the old perl-ldap and try this again?

alypius 06-27-2004 03:40 PM

When the test scripts for the install file run the last eight tests are skipped with the error: all skipped: No server.

What kind of server is it looking for? I would assume it's looking for an ldap server, but slapd is running. . .

alypius 06-27-2004 03:43 PM

But this might also be a problem: slapd will run without any errors, but it will not stay running as it should. What would cause that to happen?

david_ross 06-27-2004 04:04 PM

There could be many reasons - try running it direct from the command line with extra debugging options.


All times are GMT -5. The time now is 01:36 AM.