Files
opencloud/pkg/server
Jörn Friedrich Dreyer ec1b45cc38 query numeric attribute values without quotes
Some LDAP properties like `uidnumber` and `gidnumber` are numeric. When an OS tries to look up a user it will not only try to lookup the user by username, but also by the `uidnumber`: `(&(objectclass=posixAccount)(uidnumber=20000))`. The accounts backend for glauth was sending that as a string query `uid_number eq '20000'` in the ListAccounts query. This PR changes that to `uid_number eq 20000`. The removed quotes allow the parser in ocis-accounts to identify the numeric literal.

Related:
- https://github.com/owncloud/ocis-accounts/pull/68
- https://github.com/owncloud/ocis-glauth/issues/28

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-24 21:09:19 +02:00
..
2020-02-21 11:59:19 +01:00