]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/Auth/LDAP.pm
ldap_delete_credentials: don't complain if already deleted
[pve-access-control.git] / PVE / Auth / LDAP.pm
index 64250cb7af08c3a2e7c2c92c5b6538807ffe199b..9fa909500f3693d5626546ccf7b3369970eee1d6 100755 (executable)
@@ -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";
     }
 }