diff options
Diffstat (limited to 'read.go')
-rw-r--r-- | read.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -17,11 +17,14 @@ func (server *Server) getAttribute(dn string, attr string) ([]string, error) { return nil, err } + // List all attributes of the object, this is needed because the attribute we are + // looking for can exist with different cases than the one specified here pairs, _, err := server.kv.List(path+"/attribute=", &server.readOpts) if err != nil { return nil, err } + // Collect values for the attribute, case-insensitively values := []string{} for _, pair := range pairs { if strings.EqualFold(pair.Key, path+"/attribute="+attr) { |