Advertisement
Monarch73

Linux join domain

May 9th, 2024 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. sudo apt -y install realmd sssd sssd-tools libnss-sss libpam-sss adcli samba-common-bin oddjob oddjob-mkhomedir packagekit
  2. sudo hostnamectl set-hostname SETNEWNAMEFORYOURMACHINE
  3. realm join test.local
  4. sudo nano /etc/pam.d/common-session
  5. ------------------------
  6. pam_mkhomedir.so skel=/etc/skel umask=077
  7. ------------------------
  8.  
  9. if you want to omit domain name part for the username – go to
  10.  
  11. sudo nano
  12. /etc/sssd/sssd.conf
  13. ---------------------------------------------
  14. use_fully_qualified_names = False
  15. ---------------------------------------------
  16. Save the file and reboot sssd
  17.  
  18. For XRDP support add the last to lines of this sample sssd.conf:
  19.  
  20. [sssd]
  21. domains = test.local
  22. config_file_version = 2
  23. services = nss, pam
  24.  
  25. [domain/test.local]
  26. default_shell = /bin/bash
  27. krb5_store_password_if_offline = True
  28. cache_credentials = True
  29. krb5_realm = test.local
  30. realmd_tags = manages-system joined-with-adcli
  31. id_provider = ad
  32. fallback_homedir = /home/%u@%d
  33. ad_domain = monarch.de.local
  34. use_fully_qualified_names = True
  35. ldap_id_mapping = True
  36. access_provider = ad
  37. ad_gpo_access_control = enforcing
  38. ad_gpo_map_remote_interactive = +xrdp-sesman
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement