From 16b5860d736d27e9f2a63818f089ff5d2b01cf9f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 24 Aug 2010 15:37:18 +0000 Subject: [PATCH] Fix ownership of kerberos credentials cache git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7204 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/joindomain | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/joindomain b/xCAT/postscripts/joindomain index 62588594f..74cf05af9 100644 --- a/xCAT/postscripts/joindomain +++ b/xCAT/postscripts/joindomain @@ -28,8 +28,8 @@ if [ "$OSVER" = "rhels6" ]; then echo krb5_ccname /var/run/ldap_krb5cc >> /etc/nslcd.conf sed -i '/# Mappings for Active Directory/,/^[^#]/ s/^#\([^ ]\)/\1/' /etc/nslcd.conf authconfig --update --enableldap --ldapserver=$LDAPSRV --ldapbasedn=$LDAPBASEDN - echo 'kinit '$HOSTPRINC'-c /var/run/ldap_krb5cc < /etc/krb5.hostpass >& /dev/null' >> /etc/rc.local - echo 'kinit '$HOSTPRINC'-c /var/run/ldap_krb5cc < /etc/krb5.hostpass >& /dev/null' >> /etc/cron.hourly/nslcdkrb.cron + echo 'kinit '$HOSTPRINC'-c /var/run/ldap_krb5cc < /etc/krb5.hostpass >& /dev/null;chown nslcd /var/run/ldap_krb5cc' >> /etc/rc.local + echo 'kinit '$HOSTPRINC'-c /var/run/ldap_krb5cc < /etc/krb5.hostpass >& /dev/null;chown nslcd /var/run/ldap_krb5cc' >> /etc/cron.hourly/nslcdkrb.cron chmod +x /etc/cron.hourly/nslcdkrb.cron fi #TODO: SLES/maybe RHEL5. Uncomfortable with libnss_ldap without root_krb5_ccname, ldap needs diff credentials per user