Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
AD authentication is a popular mechanism for login and user authentication. It works very well in many scenarios, especially for enterprise applications. AD authentication is a supported scenario on SQL Server on Linux. Configuring the Linux VM to join with Active Directory (AD) can be a little tricky at sometimes though, especially in a complex enterprise environment.
Ubuntu: -
Use nano editor (or your favorite editor) to edit the interfaces configuration. (You may need sudo privilege to edit the configuration.)
$nano /etc/network/interfaces- Add the lines below:
auto eth0
iface eth0
dns-nameservers **<AD domain controller IP address>**
dns-search **<AD domain name>**- Save and close the interfaces configuration file. Then restart the network service by issuing following command.
$sudo ifdown eth0 && ifup eth0Note: The network interface (eth0) might differ for different machines. To find out which one you are using, run ifconfig and copy the interface that has an IP address and transmitted and received bytes.
RHEL:
- Use nano editor (or your favorite editor) to edit the eth0 (or a more appropriate) interface configuration file.
$nano /etc/sysconfig/network-scripts/ifcfg-eth0- Add the lines below:
peerDNS=no
DNS1=**<AD domain controller IP address>**- Save and exit the file. Restart the network service to apply the network configuration change.
$systemctl restart network
General tips:
- use ‘-v’ on realm commands to get more logging on what is failing
- You can test if your machine can contact the domain with command “realm discover **contoso.com** ”
Dylan Gray | Senior Software Engineer
Tejas Shah | Senior Program Manager
Please sign in to use this experience.
Sign in