Skip to content
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

Failed passphrase returns different output from the backend when a % is in the string #32

Open
subzero79 opened this issue Oct 10, 2019 · 0 comments

Comments

@subzero79
Copy link

I really don't know whats going on here. You can have a passphrase with non alpha chars, spaces no problem whatsoever, you can unlock from the webui and terminal. A wrong password in cryptsetup returns something like this

root@debian9:~# echo -n 'darkmoon1234' | cryptsetup luksOpen '/dev/sdh' 'sdh'-crypt --key-file=-
No key available with this passphrase.
root@debian9:~# echo -n 'darkmoon%1234' | cryptsetup luksOpen '/dev/sdh' 'sdh'-crypt --key-file=-
No key available with this passphrase.
root@debian9:~# 

Doing from the webui also returns the error output from terminal

Screenshot_2019-10-10_12-06-06

But if we use the % character this time from the webui there is no output

Screenshot_2019-10-10_12-06-36

Is like the whole omv exec is failing before it returns something, but it doesn't fail if the passphrase was indeed with a % char

Do you have any ideas @votdev what can cause something like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant