Commit 69c961f3 authored by ale's avatar ale
Browse files

Merge branch 'renovate/github.com-go-ldap-ldap-v3-3.x' into 'master'

Update module github.com/go-ldap/ldap/v3 to v3.4.2

See merge request !45
parents 7465894b 06218f00
Pipeline #30594 canceled with stages
in 7 minutes and 24 seconds
......@@ -9,7 +9,7 @@ require (
git.autistici.org/id/go-sso v0.0.0-20210117165919-e56e6579953d
git.autistici.org/id/usermetadb v0.0.0-20210507085300-ad16aa223703
github.com/ProtonMail/gopenpgp/v2 v2.4.5
github.com/go-ldap/ldap/v3 v3.4.1
github.com/go-ldap/ldap/v3 v3.4.2
github.com/go-test/deep v1.0.7
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/patrickmn/go-cache v0.0.0-20180815053127-5633e0862627
......
......@@ -101,7 +101,7 @@ func ParseDN(str string) (*DN, error) {
buffer.WriteString(packet.Data.String())
i += len(data) - 1
}
case char == ',' || char == '+':
case char == ',' || char == '+' || char == ';':
// We're done with this RDN or value, push it
if len(attribute.Type) == 0 {
return nil, errors.New("incomplete type, value pair")
......@@ -109,7 +109,7 @@ func ParseDN(str string) (*DN, error) {
attribute.Value = stringFromBuffer()
rdn.Attributes = append(rdn.Attributes, attribute)
attribute = new(AttributeTypeAndValue)
if char == ',' {
if char == ',' || char == ';' {
dn.RDNs = append(dn.RDNs, rdn)
rdn = new(RelativeDN)
rdn.Attributes = make([]*AttributeTypeAndValue, 0)
......
......@@ -97,7 +97,7 @@ github.com/felixge/httpsnoop
github.com/fxamacker/cbor/v2
# github.com/go-asn1-ber/asn1-ber v1.5.3
github.com/go-asn1-ber/asn1-ber
# github.com/go-ldap/ldap/v3 v3.4.1
# github.com/go-ldap/ldap/v3 v3.4.2
## explicit
github.com/go-ldap/ldap/v3
# github.com/go-sql-driver/mysql v1.6.0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment