• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Unable To Join Linux Samba Server To Windows Active Directory Domain

by admin

The Problem

Unable to add CentOS/RHEL 6.X server to Windows Domain, using the following command:

# net ads join -I [Domain_IP_Address] -U [Domain_User]

Error message received as follows:

Failed to join domain: failed to lookup DC info for domain"

The Solution

Appropriate entry was not present in configuration files. Configuration file /etc/nsswitch.conf was missing the “wins” entry.

1. Make sure the following entry is present in configuration file nsswitch.conf file:

hosts:      files dns wins

2. Also, make sure below entries are present in /etc/samba/smb.conf file, under [global] section:

idmap uid = 10000-20000
idmap gid = 10000-20000
template shell = /bin/false

3. Once the changes are made, restarting of winbind and smbd service is required, and can be done using below command

# /etc/init.d/winbind restart 
# /etc/init.d/smbd restart

Filed Under: CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. How to change the default location (/var/cache/yum) of yum cache
  2. atop: command not found
  3. opkg Command Examples in Linux
  4. How to configure iSCSI target using targetcli in CentOS / RHEL 7
  5. lnav Command Examples in Linux
  6. Couldn’t find device with uuid [UUID] – LVM Not Active on Reboot
  7. How to configure NTP to fall back to local system clock source in CentOS/RHEL
  8. Why Does “netstat” Output Show Many Connections in CLOSE_WAIT Status?
  9. chattr: command not found
  10. pacman-key Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright