Cannot join Samba domain - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2018
    Leeds, UK

    Cannot join Samba domain

    Hi all,

    I am struggling to connect my Windows 10 machine to my Samba domain and receiving the below error when joining:

    Note: This information is intended for a network administrator. If you are not your network's administrator, notify the administrator that you have received this information, which has been recorded in the file C:\WINDOWS\debug\dcdiag.txt.

    DNS was successfully queried for the service location (SRV) resource record used to locate a domain controller for domain "37CHAPELLANE.HOME":

    The query was for the SRV record for _ldap._tcp.dc._msdcs.37CHAPELLANE.HOME

    The following domain controllers were identified by the query:

    However no domain controllers could be contacted.

    Common causes of this error include:

    - Host (A) or (AAAA) records that map the names of the domain controllers to their IP addresses are missing or contain incorrect addresses.

    - Domain controllers registered in DNS are not connected to the network or are not running.
    hosts file:
    Code:       localhost localhost.localdomain   CEREBRO.37CHAPELLANE.HOME CEREBRO cerebro Cerebro
    SMB.conf file:
    # Global parameters
    	dns forwarder =
    	netbios name = CEREBRO
    	realm = 37CHAPELLANE.HOME
    	server role = active directory domain controller
    	workgroup = 37CHAPELLANE
    	idmap_ldb:use rfc2307 = yes
    	path = /var/lib/samba/sysvol/37chapellane.home/scripts
    	read only = No
    	path = /var/lib/samba/sysvol
    	read only = No
    krb5.conf file:
    	default_realm = 37CHAPELLANE.HOME
    	dns_lookup_realm = false
    	dns_lookup_kdc = true
    resolv.conf file:
    # Generated by NetworkManager
    domain 37CHAPELLANE.HOME
    search 37CHAPELLANE.HOME
    I'm using Fedora 28 and used the command:
    samba-tool domain provision --use-rfc2307 --interactive
    Any pointers would be appreciated, now been on with this for two days!


  2. #2
    Join Date
    Aug 2018
    Cusco, Peru
    Linux (Fedora) Firefox 61.0

    Re: Cannot join Samba domain

    Hello I had the same issue today and the problem was related with ports, If you shutdown the firewall the window client will join to the domain. Good luck.

  3. #3
    Join Date
    Dec 2017
    Windows 7 Firefox 60.0

    Re: Cannot join Samba domain

    It is likely you can open the ports in the firewall. For reference as to what ports to use, see

    It is possible a firewalld service definition exists for Samba. It would probably be in /lib/firewalld/services/.

    I found a similar one on my system, that you should probably enable as well: /lib/firewalld/services/freeipa-trust.xml
    firewall-cmd --permanent --add-service=freeipa-trust --add-service=samba ; firewall-cmd --reload ;
    The definition included the ports listed in the link above:
    <?xml version="1.0" encoding="utf-8"?>
      <short>FreeIPA trust setup</short>
      <description>FreeIPA is an LDAP and Kerberos domain controller for Linux systems. Enable this option of you plan to deploy cross-forest trusts with FreeIPA and Active Directory</description>
      <port protocol="tcp" port="135"/>
      <port protocol="tcp" port="138-139"/>
      <port protocol="udp" port="138-139"/>
      <port protocol="tcp" port="389"/>
      <port protocol="udp" port="389"/>
      <port protocol="tcp" port="445"/>
      <port protocol="udp" port="445"/>
      <port protocol="tcp" port="1024-1300"/>
      <port protocol="tcp" port="3268"/>

Similar Threads

  1. Replies: 9
    Last Post: 29th September 2009, 07:16 PM
  2. Samba as BDC on Fedora 11 and WinXP SP3 not join in domain
    By Luk_ in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 29th September 2009, 04:25 AM
  3. Samba: Problems trying to join a CentOS to a fc3 Samba Domain
    By adrio in forum Servers & Networking
    Replies: 0
    Last Post: 28th November 2008, 12:32 PM
  4. Samba: can not join ADS domain
    By The_Source_HIM in forum Servers & Networking
    Replies: 1
    Last Post: 13th December 2007, 02:04 PM
  5. can't join Samba Domain
    By budds in forum Servers & Networking
    Replies: 4
    Last Post: 14th July 2005, 08:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts