Re: Untitled

From Paltry Butterfly, 2 Years ago, written in Plain Text, viewed 326 times. This paste will cross the great divide in 1 Second. This paste is a reply to Untitled from Beefy Teal - view diff
URL https://paste.steamr.com/view/42e1a4c7 Embed
Download Paste or View Raw
  1. #!/bin/bash
  2. yum install -y sssd sssd-dbus sssd-krb5 krb5-workstation authselect-compat
  3.  
  4. cat <<EOF > /etc/sssd/sssd.conf
  5. [sssd]
  6. config_file_version = 2
  7. services = nss, pam, ifp
  8. domains = uc.ucalgary.ca
  9.  
  10. [domain/uc.ucalgary.ca]
  11. id_provider = files
  12. debug_level = 5
  13. auth_provider = krb5
  14. chpass_provider = krb5
  15.  
  16. krb5_realm = UC.UCALGARY.CA
  17. krb5_server = ITSODCSRV14.UC.UCALGARY.CA:88
  18. krb5_validate = false
  19. EOF
  20.  
  21. cat <<EOF > /etc/krb5.conf
  22. [logging]
  23.  default = FILE:/var/log/krb5libs.log
  24.  kdc = FILE:/var/log/krb5kdc.log
  25.  admin_server = FILE:/var/log/kadmind.log
  26.  
  27. [libdefaults]
  28.  default_realm = UC.UCALGARY.CA
  29.  dns_lookup_realm = false
  30.  dns_lookup_kdc = false
  31.  ticket_lifetime = 24h
  32.  renew_lifetime = 7d
  33.  forwardable = true
  34.  
  35. [realms]
  36.  UC.UCALGARY.CA = {
  37.   kdc = itsodcsrv14.uc.ucalgary.ca
  38.  }
  39.  
  40. [domain_realm]
  41.  uc.ucalgary.ca = UC.UCALGARY.CA
  42.  .uc.ucalgary.ca = UC.UCALGARY.CA
  43. EOF
  44.  
  45. mkdir -p /etc/authselect/custom/rcs
  46. cd /etc/authselect/custom/rcs
  47. echo H4sIAMYsbGIAA+0ca3PbuDGf+StQ34dLMpEtybLdUevO6BKl56mTuJGv7Uwmo4FISMKJBHQAaEfNub+9uwBJkXrLshxnjjuTyCKJfWF3sQsuFPhS9CtB79keoQpw2mjYT4DZz1r1uPGs1qhX6yf12vFx/Vm1Vqs1jp+R6j6ZSiHWhipCnikpzarn1t3/TuErj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64 -d | tar -xzpf
  48.  
  49. if [[ "`authselect current -r`" != "custom/rcs" ]] ; then
  50.   authselect select custom/rcs --force
  51.   systemctl restart sssd
  52. fi
  53.  
  54. systemctl enable sssd

Reply to "Re: Untitled"

Here you can reply to the paste above