[pmg-devel] [PATCH pmg-api 1/3] show all errors when we get an ldap connection error
Dominik Csapak
d.csapak at proxmox.com
Wed Mar 13 15:17:06 CET 2019
LDAP->new can also set $@
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PMG/LDAPCache.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PMG/LDAPCache.pm b/PMG/LDAPCache.pm
index b151ea7..0d36019 100755
--- a/PMG/LDAPCache.pm
+++ b/PMG/LDAPCache.pm
@@ -358,7 +358,7 @@ sub ldap_connect_and_bind {
my ($self) = @_;
my $ldap = $self->ldap_connect() ||
- die "Can't bind to ldap server '$self->{id}': $!\n";
+ die "Can't bind to ldap server '$self->{id}': $! $@\n";
my $mesg;
--
2.11.0
More information about the pmg-devel
mailing list