Linux Join Domain Kerberos
Linux active directory join script by pierre 2017 2021.
Linux join domain kerberos. Launch terminal and enter the following command. Unix or linux agent must be domain joined. This will allow us to ssh into the linux server with user accounts in our ad domain providing a central source of cross platform authentication.
Added support for readfile for ubuntu. Use adcli to join additional domains and manually edit configuration files to include those domains. Enabling kerberos authentication assumes all unix and linux agents communicating with the management server support kerberos.
Install the kerberos library and the associated pam library with the samba client that we use to create a machine account in the uoa domain. As this is a kerberos domain type the join subcommand will join linux to windows domain as a member server and initialize the etc krb5 keytab kerberos keytab file and the etc krb5 conf configuration file. Sudo apt get install libpam krb5 krb5 user smbclient.
Joining a linux machine to a windows active directory domain is not difficult. To add linux to windows ad domain add the computer to the default folder in the ad domain using the following command. Here i ll show you how to add your linux system to a microsoft windows active directory ad domain through the command line.
Run as accounts must be configured to use domain based accounts that are associated with the appropriate unix linux run as profile. Use realmd to join the first domain and automatically configure sssd kerberos and other utilities for that domain. Next try getting a ticket.
Realm join domain tld user username. Active directory domain administrator account or an account in active directory s domain admins group or. Prerequisites to join an ubuntu server to windows active directory your ubuntu server should be able to reach ad server.