Skip to content

Commit

Permalink
rename in other place
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecodym committed Aug 3, 2023
1 parent 87c7f40 commit 88684d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/detectors/ldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result
}

if verify {
err := verifyLDAP(username[1], password[1], ldapURL)
s1.Verified = err == nil
if !isErrDeterminate(err) {
s1.VerificationError = err
verificationErr := verifyLDAP(username[1], password[1], ldapURL)
s1.Verified = verificationErr == nil
if !isErrDeterminate(verificationErr) {
s1.VerificationError = verificationErr
}
}

Expand Down

0 comments on commit 88684d5

Please sign in to comment.