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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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 install virtual machines optimized and configured for the Red Hat Virtualization environment
  2. How to view linux disk partitions (partition table)
  3. evil-winrm: Windows Remote Management (WinRM) shell for pentesting
  4. qm snapshot Command Examples in Linux
  5. xargs Command Examples in Linux
  6. rc-status Command Examples in Linux
  7. pvs: command not found
  8. “docker logs” Command Examples
  9. How to Create, restore, and delete snapshots of virtual machine images in RedHat Virtualization
  10. rpi-eeprom-update Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • gixy Command Examples
  • gitsome Command Examples
  • gitmoji Command Examples
  • gitlint Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright