mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-12-16 18:37:25 +00:00
Bump deps
This commit is contained in:
3
vendor/github.com/go-ldap/ldap/dn.go
generated
vendored
3
vendor/github.com/go-ldap/ldap/dn.go
generated
vendored
@@ -143,6 +143,9 @@ func ParseDN(str string) (*DN, error) {
|
||||
}
|
||||
} else if 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")
|
||||
}
|
||||
attribute.Value = stringFromBuffer()
|
||||
rdn.Attributes = append(rdn.Attributes, attribute)
|
||||
attribute = new(AttributeTypeAndValue)
|
||||
|
||||
5
vendor/github.com/go-ldap/ldap/filter.go
generated
vendored
5
vendor/github.com/go-ldap/ldap/filter.go
generated
vendored
@@ -82,7 +82,10 @@ func CompileFilter(filter string) (*ber.Packet, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if pos != len(filter) {
|
||||
switch {
|
||||
case pos > len(filter):
|
||||
return nil, NewError(ErrorFilterCompile, errors.New("ldap: unexpected end of filter"))
|
||||
case pos < len(filter):
|
||||
return nil, NewError(ErrorFilterCompile, errors.New("ldap: finished compiling filter with extra at end: "+fmt.Sprint(filter[pos:])))
|
||||
}
|
||||
return packet, nil
|
||||
|
||||
Reference in New Issue
Block a user