Skip to content

Commit e51ee6d

Browse files
committed
Adapt to cs3api changes
1 parent 2146e97 commit e51ee6d

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

  • services/graph/pkg/identity

services/graph/pkg/identity/cs3.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,14 @@ func (i *CS3) GetUsers(ctx context.Context, oreq *godata.GoDataRequest) ([]*libr
111111
res, err := gatewayClient.FindUsers(ctx, &cs3user.FindUsersRequest{
112112
// FIXME presence match is currently not implemented, an empty search currently leads to
113113
// Unwilling To Perform": Search Error: error parsing filter: (&(objectclass=posixAccount)(|(cn=*)(displayname=*)(mail=*))), error: Present filter match for cn not implemented
114-
Query: search,
114+
Filters: []*cs3user.Filter{
115+
{
116+
Type: cs3user.Filter_TYPE_QUERY,
117+
Term: &cs3user.Filter_Query{
118+
Query: search,
119+
},
120+
},
121+
},
115122
})
116123
switch {
117124
case err != nil:
@@ -162,7 +169,14 @@ func (i *CS3) GetGroups(ctx context.Context, oreq *godata.GoDataRequest) ([]*lib
162169
res, err := gatewayClient.FindGroups(ctx, &cs3group.FindGroupsRequest{
163170
// FIXME presence match is currently not implemented, an empty search currently leads to
164171
// Unwilling To Perform": Search Error: error parsing filter: (&(objectclass=posixAccount)(|(cn=*)(displayname=*)(mail=*))), error: Present filter match for cn not implemented
165-
Filter: search,
172+
Filters: []*cs3group.Filter{
173+
{
174+
Type: cs3group.Filter_TYPE_QUERY,
175+
Term: &cs3group.Filter_Query{
176+
Query: search,
177+
},
178+
},
179+
},
166180
})
167181

168182
switch {

0 commit comments

Comments
 (0)