-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change user password #66
Comments
Hi @Jonesy22 - I haven't had time to spin up a Docker container today to test this out (nor have I confirmed the required parameters to run it), but I'd expect you could run it using a command similar to the following (using
I took this from the Docker entrypoint, which uses the same syntax to invoke Lemur's Let me know how this works for you. |
Also, in case you're not familiar with docker exec, you'd start with something like:
Which should get you into a shell on the Docker container in order to execute the command I mentioned above. |
Thank you for your response. So I've exec'd into the container successfully, but when I try running the line in your first comment, it says /opt/venv/bin/python3: not found. I do not have /opt/venv/ in the lemur container, as opt/ only holds lemur/ |
How did you start the container? It's been a while since I worked on this project but I'm pretty sure |
In one terminal I did |
When you run |
So after running a |
Sounds like you haven't initialized the Lemur DB yet. See the |
Thank you for all your help. Ideally for my use, users would have accounts created for them by an admin, and then they can change their passwords on their own accounts. But this process doesn't seem to help me in that case. Essentially I want to have functionality in the |
You can include the password on the initial user creation ( Feel free to propose a PR against Lemur if you'd like, though I must admit that I'm not sure if there's an intentional reason this functionality isn't included. |
I know there is a ResetPassword() function in lemur-build-docker/lemur/lemur/manage.py , and in the main Lemur repo there is a command to run a password reset. But when running Lemur using the Dockerized version with docker-compose up, how can I reset the password for a given user?
(i.e. when Lemur is ran WITHOUT Docker, using 'lemur start', I read that I can reset the password by running 'lemur reset_password -u username'. However when I run 'docker-compose up', I do not know how to execute the same command. Thanks in advance.
The text was updated successfully, but these errors were encountered: