ocis-accounts [list|delete|update|add|inspect]
Implements UpdateMask for the update request. Changed server-handler accordingly.
The commands use service-discovery to discover the backend.
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'` and has been changed to send it as `uid_number eq 20000`. The removed quotes allow the parser in ocis-accounts to identify the numeric literal and use the NewNumericRangeInclusiveQuery instead of a TermQuery.
Related:
https://github.com/owncloud/ocis-glauth/issues/28https://github.com/owncloud/ocis-glauth/pull/29
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This is the first step. Only shows name and email so far (because we
don't have more data). Was necessary to change the request type of the
list request to POST because it is not supported by microweb to have GET
requests.
- set up http server for a) handling the service requests and b)
serving the static assets for the ocis-web extension
- align the server command with other ocis-extensions, including config
variable naming
On `make generate` the `pkg/assets/embed.go` will be generated from the
current state of the javascript app bundle in `assets/accounts.js`. So
you'll have to run `yarn build` first and then `make generate`.
Some of the Protobuf Messages were missing fields:
- RemoveMemberRequest was missing the `account_id` field for the account/member id
- ListMembersRequest was missing the `id` field for the group id
Some of the endpoint annotations were not correct regarding declared
bodies and the ids listed above.
Also did some minor refactoring to make the code similar to the other
services.
Implements one task of owncloud/product#86
Signed-off-by: David Christofas <dchristofas@owncloud.com>