i.pamconf revision 7c478bd95313f5f23a4c958a745db2134aa03244
# The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] #ident "%Z%%M% %I% %E% SMI" # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # No comments or blanks lines allowed in entries below krlogin auth required pam_unix_cred.so.1 krlogin auth binding pam_krb5.so.1 krlogin auth required pam_unix_auth.so.1 krsh auth required pam_unix_cred.so.1 krsh auth binding pam_krb5.so.1 krsh auth required pam_unix_auth.so.1 ktelnet auth required pam_unix_cred.so.1 ktelnet auth binding pam_krb5.so.1 ktelnet auth required pam_unix_auth.so.1 # No comments or blanks lines allowed in entries below ppp auth requisite pam_authtok_get.so.1 ppp auth required pam_dhkeys.so.1 ppp auth required pam_unix_cred.so.1 ppp auth required pam_unix_auth.so.1 ppp auth required pam_dial_auth.so.1 # No comments or blanks lines allowed in entries below cron account required pam_unix_account.so.1 echo "${dest} default entries updated, \c" \
# Update pam.conf with entries for PAM modules pam_authtok_get, # pam_authtok_check, pam_authtok_store, pam_unix_auth, pam_unix_account, # pam_unix_cred, pam_unix_session, pam_dhkeys and pam_passwd_auth echo "${dest} updating pam_unix with default PAM entries \c" \
nawk '/^#/ { print; next } \ print $1 "\t" $2 " " "requisite\t\t" \ print $1 "\t" $2 " " $3 "\t\t" \ print $1 "\t" $2 " " $3 "\t\t" \ print $1 "\t" $2 " " $3 "\t\t" \ $4 ~ /pam_rhosts_auth/ && $1 == "rsh" && $3 == "required" { \ print $1 "\t" $2 " " "sufficient\t\t" $4; \ $4 ~ /pam_unix_cred/ && $3 == "required" { \ $4 ~ /pam_unix_auth/ && $1 == "rsh" && $3 == "required" { \ print $1 "\t" $2 " " "required\t\t" \ $4 ~ /pam_unix_auth/ && $3 == "required" { \ print $1 "\t" $2 " " "required\t\t" \ if (passwd_seen == 0) { \ print "passwd" "\t" "auth required\t\t" \ print $1 "\t" $2 " " $3 "\t\t" \ print $1 "\t" $2 " " $3 "\t\t" \ print $1 "\t" $2 " " $3 "\t\t" \ print $1 "\t" $2 " " "requisite\t\t" \ print $1 "\t" $2 " " "requisite\t\t" \ print $1 "\t" $2 " " $3 "\t\t" \ echo "${dest} updating default entries for roles, \c" \
nawk '/^#/ { print; next } \ $4 ~ /pam_role_auth/ { next } \ $2 == "account" && $4 ~ /pam_unix/ { \ print $1 "\t" $2 " requisite\t\t" \ #update pam.conf with entries for projects # update pam.conf to append PPP entries if not already present # (note: default list above already has role added, so we # must do this after the upgrade above has run.) # See if the entry already exists # Append PPP lines if any were not present already. echo "${dest} updating entries for PPP; \c" \
# update pam.conf to append cron entries if not already present # (note: the kerberos default list above already has the cron entried added.) # See if the entry already exists # Append cron lines if any were not present already. echo "${dest} updating entries for cron, \c" \
# update pam.conf to append kerberos entries if not already present # See if the entry already exists # Check if service name is 'dtlogin' and it is # mentioned explicitly, then add kerberos 'dtlogin' if [ $e1 = "dtlogin" ]; then # Append kerberos lines if any were not present already. echo "${dest} updating entries to add kerberos, \c" \
# due to the change in pam_ldap functionalty. echo "${dest} please examine/update the pam_ldap configuration \c" \
echo "because its functionality has changed, \c" \
echo "refer to pam_ldap(5) documentation for more information" \