Skip to content

Commit

Permalink
Fix: make error statement when SMB and KRB5 are defined more clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei committed Dec 10, 2024
1 parent 205ba37 commit 377449e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ospd_openvas/preferencehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def build_credentials_as_prefs(self, credentials: Dict) -> List[str]:
elif service == 'smb':
if krb5_set:
self.errors.append(
"Kerberos and SMB credentials are mutually exclusive."
"Disabled SMB: Kerberos and SMB credentials are mutually exclusive."
)
continue
smb_set = True
Expand All @@ -682,7 +682,7 @@ def build_credentials_as_prefs(self, credentials: Dict) -> List[str]:
elif service == 'krb5':
if smb_set:
self.errors.append(
"Kerberos and SMB credentials are mutually exclusive."
"Disabled KRB5: Kerberos and SMB credentials are mutually exclusive."
)
continue
krb5_set = True
Expand Down

0 comments on commit 377449e

Please sign in to comment.