my $ldap = Net::LDAP->new($hostname, version => 2) or die "Error: can't connect to '$hostname'";