[Samba] vampire fails because of Debian smbldap-tools problem

Geoff Scott geoffs at guestshire.com
Tue Nov 23 04:35:28 GMT 2004


Hi people,
	As usual I've tried a number of different approaches to this problem
and can't figure it out.  I don't have enough knowledge.  Every time I do
net rpc vampire I get this crap spewed at me:

Use of uninitialized value in substitution (s///) at
/usr/share/perl5/smbldap_tools.pm line 106, <CONFIGFILE> line 233.
Use of uninitialized value in substitution (s///) at
/usr/share/perl5/smbldap_tools.pm line 106, <CONFIGFILE> line 245.
Use of uninitialized value in string at /usr/share/perl5/smbldap_tools.pm
line 153.
Use of uninitialized value in string at /usr/share/perl5/smbldap_tools.pm
line 153.
erreur LDAP: Can't contact master ldap server (IO::Socket::INET: Bad
hostname ''
) at /usr/share/perl5/smbldap_tools.pm line 153.
Creating unix group: 'Hire Accounting'

I've got this in my smbldap.conf file:

# Master LDAP : needed for write operations
# Ex: $masterLDAP = "127.0.0.1";
$masterLDAP = "guests1.guestsfurniturehire.com.au";
$masterPort = "389";

And /usr/share/perl5/smbldap_tools.pm line 106, has this:

101 sub subst_configvar
102   {
103         my $value = shift;
104         my $vars = shift;
105
106         $value =~ s/\$\{([^}]+)\}/$vars->{$1} ? $vars->{$1} : $1/eg;
107         return $value;
108   }
109

/usr/share/perl5/smbldap_tools.pm line 153  Says this:

150 sub connect_ldap_master
151   {
152         # bind to a directory with dn and password
153         my $ldap_master = Net::LDAP->new(
154
154  "$config{masterLDAP}",

These are the files provided by Debian sarge with an apt-get install
smbldap-tools.
And libnet-ldap-perl has been installed.  I don't know what to do next.
I'm hoping that someone can please help me figure out what is missing.


Regards Geoff Scott




More information about the samba mailing list