Ajout des fichiers WireSharks scan pour problème messageID

This commit is contained in:
MrArmonius 2021-07-08 10:45:05 +02:00
parent 9e4b4a0162
commit 32cce4c4d3
3 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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.