Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarr committed Sep 3, 2011
2 parents e50dc67 + bdd254c commit 94f6a53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Net/LDAP.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ sub bind {
# If we're talking to a round-robin, the canonical name of # If we're talking to a round-robin, the canonical name of
# the host we are talking to might not match the name we # the host we are talking to might not match the name we
# requested # requested
my $connected_name = $ldap->{net_ldap_socket}->peerhost; my $connected_name;
if ($ldap->{net_ldap_socket}->can('peerhost')) {
$connected_name = $ldap->{net_ldap_socket}->peerhost;
}
$connected_name ||= $ldap->{net_ldap_host}; $connected_name ||= $ldap->{net_ldap_host};


$sasl_conn = eval { $sasl_conn = eval {
Expand Down

0 comments on commit 94f6a53

Please sign in to comment.