diff --git a/test_automatic/Scan_Bad_Packets.pcapng b/test_automatic/Scan_Bad_Packets.pcapng new file mode 100644 index 0000000..cc209f5 Binary files /dev/null and b/test_automatic/Scan_Bad_Packets.pcapng differ diff --git a/test_automatic/Scan_Good_Packets.pcapng b/test_automatic/Scan_Good_Packets.pcapng new file mode 100644 index 0000000..5c87f82 Binary files /dev/null and b/test_automatic/Scan_Good_Packets.pcapng differ diff --git a/test_automatic/integration.go b/test_automatic/integration.go index 4d3db0c..336260b 100644 --- a/test_automatic/integration.go +++ b/test_automatic/integration.go @@ -216,7 +216,7 @@ func main() { //Create a connection with Bottin server l, err := ldap.Dial("tcp", fmt.Sprintf("%s:%d", adresse, port)) - l.Debug = true + //l.Debug = true printError(err) //Bind with the admin account generated @@ -259,11 +259,11 @@ func main() { //Close the connection and open an other. If we don't do this, bottin server send a wrong answer. Comment this part if you want to try this - //l.Close() - //l, err = ldap.Dial("tcp", fmt.Sprintf("%s:%d",adresse, port)) - //printError(err) - //err = l.Bind(bindusername, bindpassword) - //printError(err) + l.Close() + l, err = ldap.Dial("tcp", fmt.Sprintf("%s:%d",adresse, port)) + printError(err) + err = l.Bind(bindusername, bindpassword) + printError(err) defer l.Close() //Modify attributes users and groups.