File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ DIR=$(dirname $0)
33. $DIR /funcs
44cd " $DIR "
55set_up_ssl sudo
6+ add_irods_to_system_pam_configuration
Original file line number Diff line number Diff line change @@ -128,3 +128,19 @@ age_out_pam_password() {
128128 local new_time=$((mtime - offset))
129129 sudo su - postgres -c "psql ICAT -c 'update r_user_password set create_ts=$new_time, modify_ts=$new_time where user_id=$id'"
130130}
131+
132+ add_irods_to_system_pam_configuration() {
133+ local tempfile=/tmp/irods-pam-config.$$
134+ cat <<-EOF >$tempfile
135+ auth required pam_env.so
136+ auth sufficient pam_unix.so
137+ auth requisite pam_succeed_if.so uid >= 500 quiet
138+ auth required pam_deny.so
139+ EOF
140+ sudo chown root.root $tempfile
141+ sudo mv $tempfile /etc/pam.d/irods
142+ }
143+
144+ setup_preconnect_preference() {
145+ sudo su irods -c "sed -i.orig 's/\(^\s*acPreConnect.*CS_NEG\)\([A-Z_]*\)/\1_$1/' /etc/irods/core.re"
146+ }
You can’t perform that action at this time.
0 commit comments