dpb587 / ssoca

SSO for services that use CA-based authentication.
https://dpb587.github.io/ssoca/
MIT License
10 stars 2 forks source link

Add /usr/local/sbin to list of fallback PATHs #9

Closed dpb587 closed 5 years ago

dpb587 commented 5 years ago

When executing openvpn it first searches PATH, then falls back to some OS-specific locations for finding the binary if it’s not found. Since /usr/local/sbin is not typically on a user’s default PATH, add it to the list of manual fallback paths (example).

Also, add a warning to output when a fallback path is used to more clearly surface this behavior to users in case they care.

Consider adding a flag to allow a user to disable the fallback behavior, in general?