]> git.proxmox.com Git - pmg-api.git/commit
better error handling for ldap connect
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 18 Mar 2019 13:58:32 +0000 (14:58 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 20 Mar 2019 05:43:56 +0000 (06:43 +0100)
commit8e12f6eefcba891aa3fd21102ac479fbda7e5eff
tree041e0bef5a9dde1bc7b40beae316ea6f128bc653
parent6779f7bc95e796a137474f5eb93f212ebbde4098
better error handling for ldap connect

even though we create the ldap connection with 'onerror' => 'die',
it returns undef and sets $@ on error during connect, so we want to use
that instead of $!

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PMG/LDAPCache.pm