I don't actually need any of the extra lines, calling ->ldap_bind on the store I...
Tomas Doran [Wed, 15 Jul 2009 15:47:25 +0000 (15:47 +0000)]
lib/Catalyst/Authentication/Store/LDAP/User.pm

index 9f82980..27d0462 100644 (file)
@@ -241,11 +241,8 @@ as, and returns a L<Net::LDAP> object which you can use to do further queries.
 
 sub ldap_connection {
     my $self = shift;
-    my $msg = $self->store->ldap_bind( undef, $self->ldap_entry->dn,
+    $self->store->ldap_bind( undef, $self->ldap_entry->dn,
         $self->_ldap_connection_password->() );
-    $msg->code && die("Error whilst re-binding as " . $self->ldap_entry->dn
-        . " after auth: " . $msg->error . " (" . $msg->code . ")");
-    return $self->store;
 }
 
 =head2 AUTOLOADed methods