forked from Deuxfleurs/bottin
Ajout Nouvelle Version integration.go
This commit is contained in:
parent
2f350965ce
commit
aeac8faf15
2 changed files with 10 additions and 3 deletions
|
@ -5,6 +5,7 @@ github.com/go-asn1-ber/asn1-ber v1.5.1 h1:pDbRAunXzIUXfx4CB2QJFv5IuPiuoW+sWvr/Us
|
||||||
github.com/go-asn1-ber/asn1-ber v1.5.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
|
github.com/go-asn1-ber/asn1-ber v1.5.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
|
||||||
github.com/go-ldap/ldap/v3 v3.3.0 h1:lwx+SJpgOHd8tG6SumBQZXCmNX51zM8B1cfxJ5gv4tQ=
|
github.com/go-ldap/ldap/v3 v3.3.0 h1:lwx+SJpgOHd8tG6SumBQZXCmNX51zM8B1cfxJ5gv4tQ=
|
||||||
github.com/go-ldap/ldap/v3 v3.3.0/go.mod h1:iYS1MdmrmceOJ1QOTnRXrIs7i3kloqtmGQjRvjKpyMg=
|
github.com/go-ldap/ldap/v3 v3.3.0/go.mod h1:iYS1MdmrmceOJ1QOTnRXrIs7i3kloqtmGQjRvjKpyMg=
|
||||||
|
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
|
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
|
||||||
|
|
|
@ -307,11 +307,17 @@ func reconnect(l *ldap.Conn) (l_nouv *ldap.Conn, err error){
|
||||||
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
bindpassword = "FhvuwPzk0ko"
|
var ok bool
|
||||||
if len(os.Args)==2 {
|
bindpassword, ok = os.LookupEnv("BOTTIN_DEFAULT_ADMIN_PW")
|
||||||
bindpassword = os.Args[1]
|
if !ok {
|
||||||
|
if len(os.Args) == 2 {
|
||||||
|
bindpassword = os.Args[1]
|
||||||
|
} else {
|
||||||
|
bindpassword = ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Info(fmt.Sprintf("Password selected: %s",bindpassword))
|
||||||
//log.SetLevel(log.TraceLevel)
|
//log.SetLevel(log.TraceLevel)
|
||||||
|
|
||||||
//Create a connection with Bottin server
|
//Create a connection with Bottin server
|
||||||
|
|
Loading…
Reference in a new issue