Hi, I need to connect to a ldap server (win 2k domain server) from a perl script:
use Net::LDAP; my $ldapServer = "ldap://my.ldap.hostname"; my $ad = Net::LDAP->new($ldapServer) or die "Could not connect to ldap '$ldapServer': $@"; This works fine if I use a (fully qualified) hostname (as above). But if I use the name of the windows domain instead (as in a normal window account "ourdomain\userid") I get this error: IO::Socket::INET: Bad hostname 'ourdomain' Funnily when my asp.net collegue uses the same connection-string/method from within asp.net it works fine. Now the question is, how can I connect to a ldap server when only the domain-name (from the userid) is known? Cheers, Ronald