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.
* split LDAP filters
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
* use uid attribute for testing
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
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>
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>
Since file search is not supported in ocis yet, we made a PR to phoenix
to hide the searchbar when the respective config option is set to true.
As we're using a builtin config, we need to provide that by default.