Skip to content

Commit e3be68b

Browse files
committed
d
1 parent 00e5a07 commit e3be68b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parser/parser.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ func FileLoop() {
1818
}
1919
func LDAPReader() {
2020
fmt.Println("Running command /usr/bin/ldapsearch -h " + config.LDAPHOST + " -b " + config.LDAPBASEDN + " -D '" + config.LDAPBINDDN + "' -w " + config.LDAPBINDPASSWORD + " s sub '(objectClass=computer)'")
21-
out, err := exec.Command("/usr/bin/ldapsearch -h " + config.LDAPHOST + " -b " + config.LDAPBASEDN + " -D '" + config.LDAPBINDDN + "' -w " + config.LDAPBINDPASSWORD + " s sub '(objectClass=computer)'").Output()
21+
cmd := "/usr/bin/ldapsearch -h " + config.LDAPHOST + " -b " + config.LDAPBASEDN + " -D '" + config.LDAPBINDDN + "' -w " + config.LDAPBINDPASSWORD + " s sub '(objectClass=computer)'"
22+
out, err := exec.Command(cmd).Output()
2223

2324
if err != nil {
2425
// log.Fatal(err)

0 commit comments

Comments
 (0)