From 871b02221fb941413002d3a355ca4c5bcf555f6f Mon Sep 17 00:00:00 2001 From: Valere JEANTET Date: Thu, 23 Apr 2020 09:00:37 +0200 Subject: [PATCH] use lor00x/goldap instead of vjeantet/goldap add go mod --- client.go | 2 +- constants.go | 2 +- go.mod | 5 +++++ go.sum | 2 ++ message.go | 2 +- packet.go | 2 +- responsemessage.go | 2 +- route.go | 2 +- 8 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/client.go b/client.go index 17054be..a174d36 100644 --- a/client.go +++ b/client.go @@ -6,7 +6,7 @@ import ( "sync" "time" - ldap "github.com/vjeantet/goldap/message" + ldap "github.com/lor00x/goldap/message" ) type client struct { diff --git a/constants.go b/constants.go index 75c632c..de6d229 100644 --- a/constants.go +++ b/constants.go @@ -1,6 +1,6 @@ package ldapserver -import ldap "github.com/vjeantet/goldap/message" +import ldap "github.com/lor00x/goldap/message" // LDAP Application Codes const ( diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..5fe4a8b --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/vjeantet/ldapserver + +go 1.14 + +require github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..c4d992c --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3 h1:wIONC+HMNRqmWBjuMxhatuSzHaljStc4gjDeKycxy0A= +github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3/go.mod h1:37YR9jabpiIxsb8X9VCIx8qFOjTDIIrIHHODa8C4gz0= diff --git a/message.go b/message.go index 1761a4a..f6e609f 100644 --- a/message.go +++ b/message.go @@ -3,7 +3,7 @@ package ldapserver import ( "fmt" - ldap "github.com/vjeantet/goldap/message" + ldap "github.com/lor00x/goldap/message" ) type Message struct { diff --git a/packet.go b/packet.go index 24d01ed..3f9a1b8 100644 --- a/packet.go +++ b/packet.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - ldap "github.com/vjeantet/goldap/message" + ldap "github.com/lor00x/goldap/message" ) type messagePacket struct { diff --git a/responsemessage.go b/responsemessage.go index aaf2ede..23527b9 100644 --- a/responsemessage.go +++ b/responsemessage.go @@ -1,6 +1,6 @@ package ldapserver -import ldap "github.com/vjeantet/goldap/message" +import ldap "github.com/lor00x/goldap/message" func NewBindResponse(resultCode int) ldap.BindResponse { r := ldap.BindResponse{} diff --git a/route.go b/route.go index ead0c92..db54eac 100644 --- a/route.go +++ b/route.go @@ -3,7 +3,7 @@ package ldapserver import ( "strings" - ldap "github.com/vjeantet/goldap/message" + ldap "github.com/lor00x/goldap/message" ) // Constant to LDAP Request protocol Type names