3 # Per-node NAS cluster configuration steps
7 conf_file="/root/scripts/nas.conf"
9 auth_type=$(sed -r -n -e 's@^auth_method[[:space:]]*=[[:space:]]*(files|winbind)[[:space:]]*$@\1@p' "$conf_file")
14 echo "Unsupported authentication type \"${auth_type}\""
18 domain=$(sed -r -n -e 's@^domain[[:space:]]*=[[:space:]]*([^ ]*)[[:space:]]*$@\1@p' "$conf_file" | tr '[a-z]' '[A-Z]')
20 kdc=$(sed -r -n -e 's@^kdc[[:space:]]*=[[:space:]]*([^ ]*)[[:space:]]*$@\1@p' "$conf_file")
24 echo "Setting up NSS, PAM, KRB5..."
25 authconfig --update --nostart \
26 --enablewinbindauth --enablewinbind \
27 --disablekrb5 --krb5kdc=$kdc.$domain --krb5realm=$domain
30 echo "Setting up NSS, PAM, KRB5..."
31 authconfig --update --nostart \
32 --disablewinbindauth --disablewinbind \
33 --disablekrb5 --krb5kdc=$kdc.$domain --krb5realm=$domain
37 echo "Configuring services..."
38 (cd scripts/cluster_configure && \
39 ./cluster-configure.py -t "templates/rhel/" -vv "$conf_file")