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

auth.sh username null #96

Closed
SonyLo opened this issue Jan 11, 2022 · 0 comments · Fixed by #132
Closed

auth.sh username null #96

SonyLo opened this issue Jan 11, 2022 · 0 comments · Fixed by #132
Assignees
Labels
bug Something isn't working
Milestone

Comments

@SonyLo
Copy link

SonyLo commented Jan 11, 2022

Does not work

if [ $common_name = $username ]; then
openvpn-user auth --db.path /etc/openvpn/easyrsa/pki/users.db --user ${auth_usr} --password ${auth_passwd}

Work

if [ $common_name = ${auth_usr} ]; then
openvpn-user auth --db.path /etc/openvpn/easyrsa/pki/users.db --user ${auth_usr} --password ${auth_passwd}

$common_name = ${auth_usr}

Thanks!

@pashcovich pashcovich self-assigned this Mar 11, 2022
@pashcovich pashcovich added the bug Something isn't working label Mar 11, 2022
@pashcovich pashcovich added this to the 2.0 milestone May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants