[Samba] DC join failed

Epsilon Minus theepsilonminus at gmail.com
Thu Sep 19 14:41:05 UTC 2019


Responde mail of L.P.H. van Belle

I change : /etc/krb5.conf

[libdefaults]
        default_realm = CONYLEC.LOCAL
        dns_lookup_realm = true
        dns_lookup_kdc = true

Change to
[libdefaults]
        default_realm = CONYLEC.LOCAL
        dns_lookup_realm = false
        dns_lookup_kdc = true

And i have de same output, i put after responde output of join

Your question: "And the windows server, was that from origin a windows
2003? Or lower?"

Inherit a Windows 2008 R2 with forest level and domain level: 2000  .
Raise the domain and the forest to 2008 R2. Migrate from FRS to DFS-R.

But I suspect the problem is where Rowald points to the forestdns.





root at DC01:~# ./samba-collect-debug-info.sh
Please wait, collecting debug info.

Password for Administrador at CONYLEC.LOCAL:
grep: : No such file or directory
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[netlogon]"
Processing section "[sysvol]"
Loaded services file OK.
Server role: ROLE_ACTIVE_DIRECTORY_DC

The debug info about your system can be found in this file:
/tmp/samba-debug-info.txt
Please check this and if required, sanitise it.
Then copy & paste it into an  email to the samba list
Do not attach it to the email, the Samba mailing list strips attachments.

root at DC01:~# ./samba-collect-debug-info.sh
Please wait, collecting debug info.

kinit: Client 'Administrator at CONYLEC.LOCAL' not found in Kerberos
database while getting initial credentials
Wrong password or kerberos REALM problems, exiting now.
root at DC01:~#
root at DC01:~#
root at DC01:~# vim samba-collect-debug-info.sh
root at DC01:~#
root at DC01:~# ./samba-collect-debug-info.sh
Please wait, collecting debug info.

Password for Administrador at CONYLEC.LOCAL:
grep: : No such file or directory
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[netlogon]"
Processing section "[sysvol]"
Loaded services file OK.
Server role: ROLE_ACTIVE_DIRECTORY_DC

The debug info about your system can be found in this file:
/tmp/samba-debug-info.txt
Please check this and if required, sanitise it.
Then copy & paste it into an  email to the samba list
Do not attach it to the email, the Samba mailing list strips attachments.
root at DC01:~#
root at DC01:~#
root at DC01:~# less /tmp/samba-debug-info.txt
root at DC01:~#
root at DC01:~#
root at DC01:~# cat /tmp/samba-debug-info.txt
Collected config  --- 2019-09-19-11:38 -----------

Hostname: DC01
DNS Domain: conylec.local
FQDN: DC01.conylec.local
ipaddress: 192.168.1.233

-----------

Kerberos SRV _kerberos._tcp.conylec.local record verified ok, sample output:
Server: 192.168.1.244
Address: 192.168.1.244#53

_kerberos._tcp.conylec.local service = 0 100 88 ad01.conylec.local.
Samba is not being run as a DC or a Unix domain member.

-----------
       Checking file: /etc/os-release

NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

-----------


This computer is running Ubuntu 18.04.3 LTS x86_64

-----------
running command : ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
42: eth0 at if43: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UP group default qlen 1000
    link/ether d2:93:f4:a8:ad:56 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 192.168.1.233/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::d093:f4ff:fea8:ad56/64 scope link

-----------
       Checking file: /etc/hosts

127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# --- BEGIN PVE ---
192.168.1.233 DC01.conylec.local DC01
# --- END PVE ---

-----------

       Checking file: /etc/resolv.conf

# --- BEGIN PVE ---
search conylec.local
nameserver 192.168.1.244
# --- END PVE ---

-----------

       Checking file: /etc/krb5.conf

[libdefaults]
        default_realm = CONYLEC.LOCAL
        dns_lookup_realm = false
        dns_lookup_kdc = true

-----------

       Checking file: /etc/nsswitch.conf

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat systemd
group:          compat systemd
shadow:         compat
gshadow:        files

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

-----------

    Warning,  does not exist

-----------


Installed packages:
ii  acl                           2.2.52-3build1
amd64        Access control list utilities
ii  attr                          1:2.4.47-2build1
amd64        Utilities for manipulating filesystem extended attributes
ii  krb5-config                   2.6
all          Configuration files for Kerberos Version 5
ii  krb5-locales                  1.16-2ubuntu0.1
all          internationalization support for MIT Kerberos
ii  krb5-user                     1.16-2ubuntu0.1
amd64        basic programs to authenticate using MIT Kerberos
ii  libacl1:amd64                 2.2.52-3build1
amd64        Access control list shared library
ii  libattr1:amd64                1:2.4.47-2build1
amd64        Extended attribute shared library
ii  libgssapi-krb5-2:amd64        1.16-2ubuntu0.1
amd64        MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
ii  libkrb5-26-heimdal:amd64      7.5.0+dfsg-1
amd64        Heimdal Kerberos - libraries
ii  libkrb5-3:amd64               1.16-2ubuntu0.1
amd64        MIT Kerberos runtime libraries
ii  libkrb5support0:amd64         1.16-2ubuntu0.1
amd64        MIT Kerberos runtime libraries - Support library
ii  libnss-winbind:amd64          2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Samba nameservice integration plugins
ii  libpam-krb5:amd64             4.8-1
amd64        PAM module for MIT Kerberos
ii  libpam-winbind:amd64          2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Windows domain authentication integration plugin
ii  libsmbclient:amd64            2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        shared library for communication with SMB/CIFS servers
ii  libwbclient0:amd64            2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Samba winbind client library
ii  python-samba                  2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Python bindings for Samba
ii  samba                         2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        SMB/CIFS file, print, and login server for Unix
ii  samba-common                  2:4.7.6+dfsg~ubuntu-0ubuntu2.11
all          common files used by both the Samba server and client
ii  samba-common-bin              2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Samba common files used by both the server and the client
ii  samba-dsdb-modules            2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Samba Directory Services Database
ii  samba-libs:amd64              2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Samba core libraries
ii  samba-vfs-modules             2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        Samba Virtual FileSystem plugins
ii  smbclient                     2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        command-line SMB/CIFS clients for Unix
ii  winbind                       2:4.7.6+dfsg~ubuntu-0ubuntu2.11
amd64        service to resolve user and group information from
Windows NT servers

-----------

El jue., 19 sept. 2019 a las 10:59, L.P.H. van Belle via samba
(<samba at lists.samba.org>) escribió:
>
>
> Hai,
>
> Try this first.
>
> Change : /etc/krb5.conf
>
> [libdefaults]
>         default_realm = CONYLEC.LOCAL
>         dns_lookup_realm = true
>         dns_lookup_kdc = true
>
> Change to
> [libdefaults]
>         default_realm = CONYLEC.LOCAL
>         dns_lookup_realm = false
>         dns_lookup_kdc = true
>
> There is no need to lookup the REALM in the DNS, its the Default REALM.
>
> Then try again to join.
> But now try this.
>
> kinit Administrator
>
> samba-tool domain join conylec.local DC -k yes --debug 3
>
> If that does not work, can you run :
> wget https://raw.githubusercontent.com/thctlo/samba4/master/samba-collect-debug-info.sh |bash
>
> And post the output.
>
> And the windows server, was that from origin a windows 2003? Or lower?
>
> Greetz,
>
> Louis
>
>
>
> > -----Oorspronkelijk bericht-----
> > Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> > Epsilon Minus via samba
> > Verzonden: donderdag 19 september 2019 15:47
> > Aan: Rowland penny
> > CC: samba
> > Onderwerp: Re: [Samba] DC join failed
> >
> > El jue., 19 sept. 2019 a las 4:16, Rowland penny via samba
> > (<samba at lists.samba.org>) escribió:
> > >
> > > On 19/09/2019 02:33, Epsilon Minus via samba wrote:
> > > > I responde behind your question! thanks for your colaboration!
> > > >
> > > >
> > > >
> > > > oot at DC01:/var/lib/samba/private# lsb_release -a
> > > > No LSB modules are available.
> > > > Distributor ID: Ubuntu
> > > > Description: Ubuntu 18.04.3 LTS
> > > > Release: 18.04
> > > > Codename: bionic
> > >
> > > You do not have all the required packages installed, see here:
> > >
> > >
> > https://wiki.samba.org/index.php/Distribution-specific_Package
> > _Installation#Ubuntu
> >
> > > Rowland
> > >
> >
> > I installed 3 packed :   libnss-winbind libpam-krb5 libpam-winbind
> >
> > The output is the same at first time.
> >
> > I made many samba installations like dc ad. I don't think the problem
> > is in the Samba. I suspect that I have the problem in Windows AD (but
> > it does allow me to replicate with a Windows). I am lost with debug.
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
> >
> >
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list