aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-09-16 13:46:18 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-09-16 13:46:18 +0200
commit2707dd77c5b479cd4abb1d0e69488631a3d89e19 (patch)
treea3a55dc4f1479908ffef4c2a6632eb1a092c5459
parent477d7014edc787ba9a977acd19fcbfc55531768b (diff)
downloadbottin-2707dd77c5b479cd4abb1d0e69488631a3d89e19.tar.gz
bottin-2707dd77c5b479cd4abb1d0e69488631a3d89e19.zip
Use vendored goldap
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--ldapserver/client.go2
-rw-r--r--ldapserver/constants.go2
-rw-r--r--ldapserver/message.go2
-rw-r--r--ldapserver/packet.go2
-rw-r--r--ldapserver/responsemessage.go2
-rw-r--r--ldapserver/route.go2
-rw-r--r--main.go2
-rw-r--r--read.go2
-rw-r--r--write.go2
11 files changed, 10 insertions, 14 deletions
diff --git a/go.mod b/go.mod
index 22c2023..a7ce11d 100644
--- a/go.mod
+++ b/go.mod
@@ -6,6 +6,6 @@ require (
github.com/go-ldap/ldap/v3 v3.3.0
github.com/google/uuid v1.1.1
github.com/hashicorp/consul/api v1.3.0
- github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3
github.com/sirupsen/logrus v1.4.2
+ golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 // indirect
)
diff --git a/go.sum b/go.sum
index e4825c4..8954334 100644
--- a/go.sum
+++ b/go.sum
@@ -51,8 +51,6 @@ github.com/hashicorp/serf v0.8.2 h1:YZ7UKsJv+hKjqGVUUbtE3HNj79Eln2oQ75tniF6iPt0=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
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/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3 h1:wIONC+HMNRqmWBjuMxhatuSzHaljStc4gjDeKycxy0A=
-github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3/go.mod h1:37YR9jabpiIxsb8X9VCIx8qFOjTDIIrIHHODa8C4gz0=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/miekg/dns v1.0.14 h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA=
@@ -84,13 +82,11 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
-golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 h1:KYQXGkl6vs02hK7pK4eIbw0NpNPedieTSTEiJ//bwGs=
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 h1:vEg9joUBmeBcK9iSJftGNf3coIG4HqZElCPehJsfAYM=
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181201002055-351d144fa1fc h1:a3CU5tJYVj92DY2LaA1kUkrsqD5/3mLDhx2NcNqyW+0=
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
diff --git a/ldapserver/client.go b/ldapserver/client.go
index 91a5980..c9a6f2c 100644
--- a/ldapserver/client.go
+++ b/ldapserver/client.go
@@ -6,7 +6,7 @@ import (
"sync"
"time"
- ldap "github.com/lor00x/goldap/message"
+ ldap "bottin/goldap"
)
type UserState interface{}
diff --git a/ldapserver/constants.go b/ldapserver/constants.go
index de6d229..a04ca43 100644
--- a/ldapserver/constants.go
+++ b/ldapserver/constants.go
@@ -1,6 +1,6 @@
package ldapserver
-import ldap "github.com/lor00x/goldap/message"
+import ldap "bottin/goldap"
// LDAP Application Codes
const (
diff --git a/ldapserver/message.go b/ldapserver/message.go
index f6e609f..7033e06 100644
--- a/ldapserver/message.go
+++ b/ldapserver/message.go
@@ -3,7 +3,7 @@ package ldapserver
import (
"fmt"
- ldap "github.com/lor00x/goldap/message"
+ ldap "bottin/goldap"
)
type Message struct {
diff --git a/ldapserver/packet.go b/ldapserver/packet.go
index 77b4926..7692bf8 100644
--- a/ldapserver/packet.go
+++ b/ldapserver/packet.go
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
- ldap "github.com/lor00x/goldap/message"
+ ldap "bottin/goldap"
)
type messagePacket struct {
diff --git a/ldapserver/responsemessage.go b/ldapserver/responsemessage.go
index 23527b9..9dc0406 100644
--- a/ldapserver/responsemessage.go
+++ b/ldapserver/responsemessage.go
@@ -1,6 +1,6 @@
package ldapserver
-import ldap "github.com/lor00x/goldap/message"
+import ldap "bottin/goldap"
func NewBindResponse(resultCode int) ldap.BindResponse {
r := ldap.BindResponse{}
diff --git a/ldapserver/route.go b/ldapserver/route.go
index dfd5240..3ba5618 100644
--- a/ldapserver/route.go
+++ b/ldapserver/route.go
@@ -3,7 +3,7 @@ package ldapserver
import (
"strings"
- ldap "github.com/lor00x/goldap/message"
+ ldap "bottin/goldap"
)
// Constant to LDAP Request protocol Type names
diff --git a/main.go b/main.go
index b490aa7..4e5abce 100644
--- a/main.go
+++ b/main.go
@@ -13,9 +13,9 @@ import (
"syscall"
ldap "bottin/ldapserver"
+ message "bottin/goldap"
consul "github.com/hashicorp/consul/api"
- message "github.com/lor00x/goldap/message"
log "github.com/sirupsen/logrus"
)
diff --git a/read.go b/read.go
index 7887c93..06e54b2 100644
--- a/read.go
+++ b/read.go
@@ -6,7 +6,7 @@ import (
ldap "bottin/ldapserver"
- message "github.com/lor00x/goldap/message"
+ message "bottin/goldap"
)
// Generic read utility functions ----------
diff --git a/write.go b/write.go
index 482f971..2dd42c6 100644
--- a/write.go
+++ b/write.go
@@ -8,7 +8,7 @@ import (
ldap "bottin/ldapserver"
consul "github.com/hashicorp/consul/api"
- message "github.com/lor00x/goldap/message"
+ message "bottin/goldap"
)
// Generic item modification function --------