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

    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:
    cerebro.37chapellane.home


    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:
    127.0.0.1       localhost localhost.localdomain
    192.168.0.200   CEREBRO.37CHAPELLANE.HOME CEREBRO cerebro Cerebro
    SMB.conf file:
    Code:
    # Global parameters
    [global]
    	dns forwarder = 192.168.0.1
    	netbios name = CEREBRO
    	realm = 37CHAPELLANE.HOME
    	server role = active directory domain controller
    	workgroup = 37CHAPELLANE
    	idmap_ldb:use rfc2307 = yes
    
    [netlogon]
    	path = /var/lib/samba/sysvol/37chapellane.home/scripts
    	read only = No
    
    [sysvol]
    	path = /var/lib/samba/sysvol
    	read only = No
    krb5.conf file:
    Code:
    [libdefaults]
    	default_realm = 37CHAPELLANE.HOME
    	dns_lookup_realm = false
    	dns_lookup_kdc = true
    resolv.conf file:
    Code:
    # Generated by NetworkManager
    domain 37CHAPELLANE.HOME
    search 37CHAPELLANE.HOME
    nameserver 192.168.0.200
    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!

    Thanks,

  2. #2
    Join Date
    Aug 2018
    Location
    Cusco, Peru
    Posts
    1
    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
    Location
    USA
    Posts
    46
    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 https://stackoverflow.com/questions/.../380985#380985.

    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
    Code:
    firewall-cmd --permanent --add-service=freeipa-trust --add-service=samba ; firewall-cmd --reload ;
    The definition included the ports listed in the link above:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <service>
      <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"/>
    </service>

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
  •