[SD-714][SD-718] Refactored the reset_password endpoint.
[SD-714][SD-718] Refactored the commands.
[SD-716] Units for create user for ldap authentication.
[SD-717] Disable auth feature when ldap authentication is active.
[SD-717] Fixing the flake8 errors