Is it possible to pass the nic card I want to register with any flag to "net ads join" without changing samba configuration?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5 and 6

Issue

  • When we join the server all the nic cards are getting auto registered to DNS and this is causing issues.
  • Is it possible to deny the DNS auto registration from the nic configuration file or samba ?
  • We are using the following command to join the machines:
net ads join –U domainadmin

Resolution

The command line argument "--option=" can be used.

# net ads join -U domainadmin --option="interfaces = eth0 eth1"

This should be set in the [global] section of the /etc/samba/smb.conf file as well.

bind interfaces only = yes

Root Cause

With a large number of Winbind clients it may be easier to set the "interfaces" option from the command line when joining the domain instead of modifying the smb.conf file on each server, especially if the servers don't all use the same interface names.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.