duosecurity / duo_unix

Duo two-factor authentication for Unix systems
http://www.duosecurity.com
349 stars 136 forks source link

Add better solaris support to support script #263

Closed mbish closed 1 year ago

mbish commented 1 year ago

Issue number being addressed

In order to better support solaris and rarer PAM configurations we should collect a few additional files with the support script.

Summary of the change

We now detect which version of grep to use based on the OS and then use grep to identify relevant files inside of a user's /etc/pam.d directory when the support tool is run.

Additionally we now get a copy of authentication logs in /var/adm which is used on solaris.

Test Plan

Manually tested on Solaris