Signed-off-by: Thomas Lamprecht <t.lampre...@proxmox.com>
---

it's just for style, a realm was deleted nonetheless 

 PVE/Auth/LDAP.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Auth/LDAP.pm b/PVE/Auth/LDAP.pm
index 64250cb..9fa9095 100755
--- a/PVE/Auth/LDAP.pm
+++ b/PVE/Auth/LDAP.pm
@@ -411,6 +411,7 @@ sub ldap_delete_credentials {
     my ($realmid) = @_;
 
     if (my $cred_file = get_cred_file($realmid)) {
+       return if ! -e $cred_file; # nothing to do
        unlink($cred_file) or warn "removing LDAP credentials '$cred_file' 
failed: $!\n";
     }
 }
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to