make-sso
changeset 9 f4bf6556fb9f
parent 8 f68fdcc18df9
parent 6 3ac4e03f28b2
equal deleted inserted replaced
8:f68fdcc18df9 9:f4bf6556fb9f
   150 # KDC setup
   150 # KDC setup
   151 stash_pw="`generate_password 40`"
   151 stash_pw="`generate_password 40`"
   152 
   152 
   153 # seeds /dev/random rather nicely...
   153 # seeds /dev/random rather nicely...
   154 screen -dmS hasher sh -c "find /usr/lib/ /usr/share/ -print0 -type f | xargs -0 -n1 sha1sum"
   154 screen -dmS hasher sh -c "find /usr/lib/ /usr/share/ -print0 -type f | xargs -0 -n1 sha1sum"
   155 if [ -f /etc/krb5kdc/principal ]; then
   155 if [ -f /var/lib/krb5kdc/principal ]; then
   156 	rm -fv /etc/krb5kdc/principal \
   156 	rm -fv /var/lib/krb5kdc/principal \
   157 			/etc/krb5kdc/principal.kadm5 \
   157 			/var/lib/krb5kdc/principal.kadm5 \
   158 			/etc/krb5kdc/principal.kadm5.lock \
   158 			/var/lib/krb5kdc/principal.kadm5.lock \
   159 			/etc/krb5kdc/principal.ok
   159 			/var/lib/krb5kdc/principal.ok
   160 fi
   160 fi
   161 echo -en "${stash_pw}\n${stash_pw}\n" | kdb5_util create -s
   161 echo -en "${stash_pw}\n${stash_pw}\n" | kdb5_util create -s
   162 
   162 
   163 echo -e "*/admin\t*" > /etc/krb5kdc/kadm5.acl
   163 echo -e "*/admin\t*" > /etc/krb5kdc/kadm5.acl
   164 
   164