Closed stephdl closed 7 months ago
QA
@stephdl sorry for coming late at the party, but the error returned by the action should conform to other validation errors, e.g.
if realm in domains and provision == 'new-domain':
agent.set_status('validation-failed')
json.dump([{'field':'realm', 'parameter':'realm','value': realm, 'error':'domain_already_exists'}], fp=sys.stdout)
sys.exit(2)
In core 2.5.3-dev.5
VERIFIED
Proposed solution
The code is working well but we do not verify that the user account domain exists before to bind to it, we must have a stronger behaviour and verify before to bind if the user-account exists
Alternative solutions
let the code as is
Additional context
core 2.5.2