Don't mess with the keytab in postinst
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Wed, 5 Dec 2007 02:57:09 +0000 (21:57 -0500)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Wed, 5 Dec 2007 02:57:09 +0000 (21:57 -0500)
debian/postinst

index 59af2f0..f34a2f8 100644 (file)
@@ -42,24 +42,6 @@ case "$1" in
         if [ -f /etc/csc/ldap.cf ] && ! dpkg-statoverride --list /etc/csc/ldap.cf > /dev/null; then
             dpkg-statoverride --add --update $CEO staff 640 /etc/csc/ldap.cf
         fi
-
-        if [ ! -e /etc/csc/ceo.keytab ] && [ -x /usr/sbin/kadmin.local ]; then
-            if dpkg-statoverride --list /etc/csc/ceo.keytab > /dev/null; then
-                dpkg-statoverride --remove /etc/csc/ceo.keytab || true
-            fi    
-            echo 'warning: re-creating ceo.keytab'
-            echo 'ktadd -k /etc/csc/ceo.keytab ceo/admin' | /usr/sbin/kadmin.local || true
-            if [ -e /etc/csc/ceo.keytab ]; then
-                echo -e "\nSuccess!"
-            else
-                echo -e "\nFailed!"
-            fi
-        fi
-
-        if [ -f /etc/csc/ceo.keytab ] && ! dpkg-statoverride --list /etc/csc/ceo.keytab > /dev/null; then
-            dpkg-statoverride --add --update $CEO staff 640 /etc/csc/ceo.keytab
-        fi
-        
     ;;
     
     abort-upgrade|abort-remove|abort-deconfigure)