#%PAM-1.0
#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
#auth required pam_env.so

#
# prevent root access from all login service except 'su' and
# only allow the following users to invoke su
#    root, hscroot, hscpe, PE and ccfw
#
auth requisite /lib/security/pam_hsc.so 

#
# allow only the local users to use pam_unix_auth to authenticate 
# local users are:
#    root, hscroot, hscpe and all users that are not using ldap and
#    and kerberos for authentication.
#
auth [ success=ok user_unknown=2 default=bad ] /lib/security/pam_hsc.so local
auth sufficient /lib/security/pam_unix_auth.so
auth requisite /lib/security/pam_deny.so

#
# allow only the ldap users to use pam_ldap module to authenticate
#
auth [ success=ok user_unknown=2 default=bad ] /lib/security/pam_hsc.so ldap
auth sufficient /lib/security/pam_ldap.so config=/etc/openldap/ldap.conf
auth requisite /lib/security/pam_deny.so

#
# allow only the kerberos users to use pam_krb5 module to authenticate
#
auth [ success=ok user_unknown=2 default=bad ] /lib/security/pam_hsc.so krb5
auth sufficient /lib/security/pam_krb5.so search_k5login use_authtok
auth requisite /lib/security/pam_deny.so

#
# should reject all other cases
#
auth requisite /lib/security/pam_deny.so

