All versions of Centrify DirectControl
A DirectAuthorize role has been set up such that it allows access via ssh services only. The main objective to deny access to a certain group like say sysadmins via telnet. Other groups can use telnet, but not sysadmins. The role works fine however is there any control over the "login denied message which can be customized to state explicitly that login was denied as telnet was disallowed. The message "Account cannot be accessed at this time" implies it is
time related and that if attempted at another time in a few hours, it may work?
Depending on the OS, customers are advised to change the below line in /etc/pam.conf
As root, modify /etc/pam.conf as follows:
change this line:
login auth sufficient pam_centrifydc.so unix_cred
login auth sufficient pam_centrifydc.so unix_cred enable_dzpamgate
Re-start Centrify and run adflush. Try telnet again and you should see the denied message as custom defined in /etc/centrifydc/centrifydc.conf from pam.workstation.denied.mesg
Note: If the OS is AIX, please be aware that DirectAuthorize is enabled for PAM and not LAM.