~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to debian/krb5-kdc.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
            . /etc/default/krb5-kdc
27
27
        fi
28
28
        cat <<'EOF' > /etc/default/krb5-kdc
29
 
# Automatically generated.  If you change anything in this file other than the
30
 
# values of KRB4_MODE, RUN_KRB524D, or DAEMON_ARGS, first run dpkg-reconfigure
31
 
# krb5-kdc and disable managing the KDC configuration with debconf.
32
 
# Otherwise, changes will be overwritten.
 
29
 
 
30
# Automatically generated.  Only the value of DAEMON_ARGS will be preserved.
 
31
# If you change anything in this file other than DAEMON_ARGS, first run
 
32
# dpkg-reconfigure krb5-kdc and disable managing the KDC configuration with
 
33
# debconf.  Otherwise, changes will be overwritten.
33
34
 
34
35
EOF
35
 
        db_get krb5-kdc/krb4-mode
36
 
        echo "KRB4_MODE=$RET" >> /etc/default/krb5-kdc
37
 
        db_get krb5-kdc/run-krb524
38
 
        echo "RUN_KRB524D=$RET" >> /etc/default/krb5-kdc
39
36
        if [ -n "$DAEMON_ARGS" ] ; then
40
37
            echo "DAEMON_ARGS=\"$DAEMON_ARGS\"" >> /etc/default/krb5-kdc
41
38
        fi
49
46
# Kerberos administrator should do that manually when ready.
50
47
#
51
48
# If update-inetd isn't available, don't bother, since it's just an example.
52
 
if [ "configure" = "$1" ] && /bin/which update-inetd >/dev/null 2>&1 ; then
 
49
if [ "configure" = "$1" ] && which update-inetd >/dev/null 2>&1 ; then
53
50
    if [ -z "$2" ] || [ x"$2" = x"<unknown>" ] ; then
54
51
        update-inetd --add --group Kerberos \
55
52
            '#krb5_prop\tstream\ttcp\tnowait\troot\t/usr/sbin/kpropd kpropd'