We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e38c3 commit dc265e7Copy full SHA for dc265e7
go/ql/src/experimental/CWE-287/examples/LdapAuthBad.go
@@ -1,3 +1,12 @@
1
+package main
2
+
3
+import (
4
+ "fmt"
5
+ "log"
6
7
+ "github.com/go-ldap/ldap"
8
+)
9
10
func bad() interface{} {
11
bindPassword := req.URL.Query()["password"][0]
12
@@ -12,4 +21,4 @@ func bad() interface{} {
21
if err != nil {
13
22
log.Fatalf("LDAP bind failed: %v", err)
14
23
}
15
-}
24
+}
go/ql/src/experimental/CWE-287/examples/LdapAuthGood.go
func good() interface{} {
@@ -14,4 +23,4 @@ func good() interface{} {
16
25
17
26
0 commit comments