RESTProxy doesn't fully work as a UserDB module
Concerned version
Version: %2.0.3
Platform: Any
Summary
The REST Proxy module is advertised in documentation as supporting UserDB functionnality, but doesn't seem to work that way.
In order to reproduce, setup a LemonLDAP::NG instance to proxy authentication to another server, then try either:
- An auto-signin rule
- A password reset
In both cases, the following appears in logs
Logs
On the proxy LLNG server:
LLNG[126]: Processing getUser
LLNG[126]: Proxy push auth to http://auth.example-backend.com/
LLNG[126]: Unable to query authentication service: 401 Unauthorized
On the backend LLNG server:
LLNG[138]: Returned error: 2 (PE_FORMEMPTY)
because the backend receives an empty 'password' field
Backends used
Demo backend
Possible fixes
Maybe implement a proper userinfo REST endpoint?