-
Notifications
You must be signed in to change notification settings - Fork 101
Description
My lecture file ("Waiting on 2FA......") from sudoers configuration is not being displayed.
/etc/pam.d/sudo
#%PAM-1.0
auth required pam_radius_auth.so skip_passwd
account include common-account
password include common-password
session optional pam_keyinit.so revoke
session include common-session
session optional pam_xauth.so
This configuration works on Cent 6,7 & 8, SLES 11, 12 and 15 SP4. With SLES 15SP5 my lecture file no longer displays.
If I remove the skip_passwd option the lecture file does display but as expected I also get prompted for the password before the 2FA is triggered.
I've also tried using the prompt= and force_prompt options as well in conjunction with the skip_passwd but I still do not get the text from my lecture file nor the text passed in the prompt option. Removing the skip_passwd cause both lecture file and prompt option to display.
I ran with debug option
pam_unix(sudo:session): session opened for user root by XXXXXX(uid=XXXXXXXX)
pam_unix(sudo:session): session closed for user root
pam_radius_auth: 2.0.1 DEVELOPER BUILD - (git #d802da75), built on May 1 2024 at 07:28:56
pam_radius_auth: _pam_parse: argv[0] = 'prompt=2FA'
pam_radius_auth: _pam_parse: argv[1] = 'force_prompt'
pam_radius_auth: _pam_parse: argv[2] = 'conf=/etc/raddb/server'
pam_radius_auth: _pam_parse: argv[3] = 'skip_passwd'
pam_radius_auth: _pam_parse: argv[4] = 'debug'
pam_radius_auth: DEBUG: conf='/etc/raddb/server' use_first_pass=no try_first_pass=no skip_passwd=yes retry=0 localifdown=no client_id='' ruser=no prompt='2FA: ' force_prompt=yes prompt_attribute=no max_challenge=0 privilege_level=no
pam_radius_auth: Got user name: 'XXXXXXX'
pam_radius_auth: Sending RADIUS request code 1 (Access-Request)
pam_radius_auth: DEBUG: get_ipaddr(XXXXXXX) returned 0.
pam_radius_auth: Got RADIUS response code 2 (Access-Accept)
pam_radius_auth: authentication succeeded