#! /bin/bash
# $Header: /global/src/etc/cl-manage-scripts/patches/RCS/P-pam-common-account-login,v 1.2 2009/03/19 11:12:05 pb22 Exp $
#
# Command to create /usr/lib/firefox-1.5.0.2/plugins/libjavaplugin_oji.so
# Called with a single argument, the file to be edited
#
# patch-file operation = shell
# patch-file distmatches = NONE
# patch-file fileexists = /etc/pam.d/common-account-login
file=/etc/pam.d/common-account-login

test -e $file || (cat > $file; ls -l $file) << \EOF
account	sufficient	pam_localuser.so
account	required	pam_ldap.so
account	requisite	pam_unix.so
account	required	pam_krb5.so	use_first_pass ignore_unknown_principals
EOF
