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