Skip to content

Commit

Permalink
KerberosCache pre-check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Feb 7, 2024
1 parent cacbfb2 commit 183037f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/integrations/activedirectory/collect/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ func PreRun(cmd *cobra.Command, args []string) error {
return errors.New("missing AD controller server name - please provide this on commandline")
}

if authmode == KerberosCache {
// Assume we can find the cache file later on
return nil
}

if *user == "" {
if *pass != "" {
return errors.New("You supplied a password, but not a username. Please provide a username or do not supply a password")
Expand Down

0 comments on commit 183037f

Please sign in to comment.