Hello, please excuse my bad englisch. I am not a native speaker. I try to install Samba 4 as a active directory domain controller but I get always this message in the /var/log/syslog: Jul 18 11:42:41 file winbindd[1100]: [2018/07/18 11:42:41.609594, 0] ../source3/winbindd/winbindd_cache.c:3235(initialize_winbindd_cache) Jul 18 11:42:41 file winbindd[1100]: initialize_winbindd_cache: clearing cache and re-creating with version number 2 Jul 18 11:42:41 file winbindd[1100]: [2018/07/18 11:42:41.933317, 0] ../lib/util/become_daemon.c:124(daemon_ready) Jul 18 11:42:41 file winbindd[1100]: STATUS=daemon 'winbindd' finished starting up and ready to serve connections Jul 18 11:42:42 file smbd[1099]: [2018/07/18 11:42:42.114985, 0] ../lib/util/become_daemon.c:124(daemon_ready) Jul 18 11:42:42 file smbd[1099]: STATUS=daemon 'smbd' finished starting up and ready to serve connections Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176270, 0] ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: Traceback (most recent call last): Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176363, 0] ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: File "/usr/sbin/samba_dnsupdate", line 614, in <module> Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176400, 0] ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: get_credentials(lp) Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176426, 0] ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: File "/usr/sbin/samba_dnsupdate", line 125, in get_credentials Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176449, 0] ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: raise e Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176479, 0] ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: RuntimeError: kinit for FILE$@SMBDOMAIN.FILE.DUCK failed (Cannot contact any KDC for requested realm) Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176609, 0] ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: Jul 18 11:42:42 file postfix/master[1201]: daemon started -- version 2.11.3, configuration /etc/postfix Jul 18 11:43:37 file smbd[1172]: [2018/07/18 11:43:37.881686, 0] ../lib/util/pidfile.c:153(pidfile_unlink) Jul 18 11:43:37 file smbd[1172]: Failed to delete pidfile /var/run/samba/smbd.pid. Error was No such file or directory Jul 18 11:43:37 file samba[1082]: [2018/07/18 11:43:37.884606, 0] ../file_server/file_server.c:48(file_server_smbd_done) Jul 18 11:43:37 file samba[1082]: file_server smbd daemon exited normally Jul 18 11:43:37 file samba[970]: [2018/07/18 11:43:37.885830, 0] ../source4/smbd/server.c:211(samba_terminate) Jul 18 11:43:37 file samba[970]: samba_terminate: smbd child process exited /etc/samba/smb.conf # Global parameters [global] workgroup = SMBDOMAIN realm = SMBDOMAIN.FILE.DUCK netbios name = FILE server role = active directory domain controller dns forwarder = 192.168.1.254 idmap_ldb:use rfc2307 = yes [netlogon] path = /var/lib/samba/sysvol/smbdomain.file.duck/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No /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.221 file.duck file # --- END PVE --- What is wrong in my configruation? Thank you! Tony
Hai, I think .. your missing in resolv.conf search duck nameserver 192.168.1.221 And whats the OS and Samba version? Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Anton Blau via samba > Verzonden: woensdag 18 juli 2018 13:50 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Cannot contact any KDC for requested realm > > Hello, > > please excuse my bad englisch. I am not a native speaker. > > I try to install Samba 4 as a active directory domain > controller but I > get always this message in the /var/log/syslog: > > Jul 18 11:42:41 file winbindd[1100]: [2018/07/18 11:42:41.609594, 0] > ../source3/winbindd/winbindd_cache.c:3235(initialize_winbindd_cache) > Jul 18 11:42:41 file winbindd[1100]: initialize_winbindd_cache: > clearing cache and re-creating with version number 2 > Jul 18 11:42:41 file winbindd[1100]: [2018/07/18 11:42:41.933317, 0] > ../lib/util/become_daemon.c:124(daemon_ready) > Jul 18 11:42:41 file winbindd[1100]: STATUS=daemon > 'winbindd' finished > starting up and ready to serve connections > Jul 18 11:42:42 file smbd[1099]: [2018/07/18 11:42:42.114985, 0] > ../lib/util/become_daemon.c:124(daemon_ready) > Jul 18 11:42:42 file smbd[1099]: STATUS=daemon 'smbd' finished > starting up and ready to serve connections > Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176270, 0] > ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) > Jul 18 11:42:42 file samba[1094]: > /usr/sbin/samba_dnsupdate: Traceback > (most recent call last): > Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176363, 0] > ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) > Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: File > "/usr/sbin/samba_dnsupdate", line 614, in <module> > Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176400, 0] > ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) > Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: > get_credentials(lp) > Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176426, 0] > ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) > Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: File > "/usr/sbin/samba_dnsupdate", line 125, in get_credentials > Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176449, 0] > ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) > Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: raise e > Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176479, 0] > ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) > Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: > RuntimeError: kinit for FILE$@SMBDOMAIN.FILE.DUCK failed > (Cannot contact > any KDC for requested realm) > Jul 18 11:42:42 file samba[1094]: [2018/07/18 11:42:42.176609, 0] > ../lib/util/util_runcmd.c:324(samba_runcmd_io_handler) > Jul 18 11:42:42 file samba[1094]: /usr/sbin/samba_dnsupdate: > Jul 18 11:42:42 file postfix/master[1201]: daemon started -- version > 2.11.3, configuration /etc/postfix > Jul 18 11:43:37 file smbd[1172]: [2018/07/18 11:43:37.881686, 0] > ../lib/util/pidfile.c:153(pidfile_unlink) > Jul 18 11:43:37 file smbd[1172]: Failed to delete pidfile > /var/run/samba/smbd.pid. Error was No such file or directory > Jul 18 11:43:37 file samba[1082]: [2018/07/18 11:43:37.884606, 0] > ../file_server/file_server.c:48(file_server_smbd_done) > Jul 18 11:43:37 file samba[1082]: file_server smbd daemon > exited normally > Jul 18 11:43:37 file samba[970]: [2018/07/18 11:43:37.885830, 0] > ../source4/smbd/server.c:211(samba_terminate) > Jul 18 11:43:37 file samba[970]: samba_terminate: smbd > child process > exited > > /etc/samba/smb.conf > > # Global parameters > [global] > workgroup = SMBDOMAIN > realm = SMBDOMAIN.FILE.DUCK > netbios name = FILE > server role = active directory domain controller > dns forwarder = 192.168.1.254 > idmap_ldb:use rfc2307 = yes > > [netlogon] > path = /var/lib/samba/sysvol/smbdomain.file.duck/scripts > read only = No > > [sysvol] > path = /var/lib/samba/sysvol > read only = No > > /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.221 file.duck file > # --- END PVE --- > > What is wrong in my configruation? > > > Thank you! > > > Tony > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
On Wed, 18 Jul 2018 13:49:39 +0200 Anton Blau via samba <samba at lists.samba.org> wrote:> From: Anton Blau via samba <samba at lists.samba.org> > To: samba at lists.samba.org > Subject: [Samba] Cannot contact any KDC for requested realm > Date: Wed, 18 Jul 2018 13:49:39 +0200 > Reply-To: Anton Blau <tony.blue.mailinglist at gmx.de> > Sender: "samba" <samba-bounces at lists.samba.org> > User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) > Gecko/20100101 Thunderbird/52.9.1 > > Hello, > > please excuse my bad englisch. I am not a native speaker. > > realm = SMBDOMAIN.FILE.DUCK> /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.221 file.duck file > # --- END PVE --- > > What is wrong in my configruation?Hmm, your REALM is 'SMBDOMAIN.FILE.DUCK' but your dnsdomain appears to be just 'duck' Rowland
Am 18.07.2018 um 14:17 schrieb Rowland Penny via samba:> On Wed, 18 Jul 2018 13:49:39 +0200 > Anton Blau via samba <samba at lists.samba.org> wrote: > > Hmm, your REALM is 'SMBDOMAIN.FILE.DUCK' but your dnsdomain appears to > be just 'duck' > > Rowland >I read https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ - but I am not sure that my configuration is right. I run a private network that can only be accessed from the internet via dyndns (Webserver in dmz). Samba should be only accessed from the local network. So I gave my local (private) Network the top-level-domain "duck". My clients are named firstpc.duck secondpc.duck ... The computer on which samba runs has the computer name "file.duck". What name is correct for the configuration by: samba-tool domain provision Realm: smbdomain.file.duck Domain: smbdomain ??? Could you explain me? Thank you! Tony