[Samba] Samba AD - Different IP than the existing one assigned
Lionel Monchecourt
lionel.monchecourt at free.fr
Thu Feb 27 13:25:55 UTC 2020
Hi, Thanks for helping.
Answers in line :
Hi,
I want to use samba as AD.
everything seemed to be ok so far with the install and the config.
STATUS=daemon 'smbd' finished starting up and ready to serve connections
Feb 27 10:34:03 ip-1XX winbindd[22083]: [2020/02/27 10:34:03.002858, 0]
../lib/util/become_daemon.c:124(daemon_ready)
Feb 27 10:34:03 ip-1XX winbindd[22083]: STATUS=daemon 'winbindd' finished
starting up and ready to serve connections
I think we need to see more of that log, particularly the lines above 'STATUS'
Log.smbd :
>
[2020/02/24 10:02:22.602083, 0] ../source3/smbd/server.c:1815(main)
server role = 'active directory domain controller' not compatible with running smbd standalone.
You should start 'samba' instead, and it will control starting smbd if required
[2020/02/24 10:02:38.247239, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2020/02/24 10:17:43.198864, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2020/02/27 10:11:32.523331, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2020/02/27 10:34:02.981826, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
Log.samba
../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 110
[2020/02/27 12:44:23.443080, 0] ../source4/dsdb/dns/dns_update.c:290(dnsupdate_nameupdate_done)
../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 110
[2020/02/27 12:54:23.503162, 0] ../source4/dsdb/dns/dns_update.c:290(dnsupdate_nameupdate_done)
../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 110
[2020/02/27 13:04:23.561187, 0] ../source4/dsdb/dns/dns_update.c:290(dnsupdate_nameupdate_done)
../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 110
[2020/02/27 13:14:23.616350, 0] ../source4/dsdb/dns/dns_update.c:290(dnsupdate_nameupdate_done)
../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 110
Nothing is running on port 53 :
tcp 0 0 0.0.0.0:49153 0.0.0.0:* LISTEN
tcp6 0 0 [::]:49153 [::]:* LISTEN
udp 0 0 0.0.0.0:53447 0.0.0.0:*
unix 2 [ ACC ] STREAM LISTENING 3728453 /var/lib/samba/ntp_signd/socket
unix 2 [ ] DGRAM 3729533 /var/lib/samba/private/msg.sock/22087
unix 3 [ ] DGRAM 3892953
unix 3 [ ] STREAM CONNECTED 18537 /run/systemd/journal/stdout
unix 2 [ ] DGRAM 3729538
unix 3 [ ] STREAM CONNECTED 21535
unix 3 [ ] STREAM CONNECTED 18536
unix 3 [ ] STREAM CONNECTED 15342 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 25453
Now, when I performed a check for the adc1, I get an answer BUT ,the IP is
not the one of the machine
I'm using the internal_samba DNS, I understood that when the service starts,
it updates himself with proper IP. am I wrong ? how can I solve this problem
Where did you get that idea from ?
> I read this in a post somewhere, but obviously it is not the case then …
A DC should have a fixed IP and that is what Samba should use.
> yes ok : 172.31.6.15
Do you have more than one ethernet device ?
> Yes , here are the different devices, but none is matching this strange IP
br-07d306ca3f41: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
inet 172.19.0.1 netmask 255.255.0.0 broadcast 172.19.255.255
ether 02:42:61:fb:18:40 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
br-eebd35f33249: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
inet6 fe80::42:dff:fed5:dd97 prefixlen 64 scopeid 0x20<link>
ether 02:42:0d:d5:dd:97 txqueuelen 0 (Ethernet)
RX packets 5577 bytes 3892905 (3.8 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1731 bytes 172505 (172.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker0: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:f7:e2:f2:17 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 172.31.6.15 netmask 255.255.240.0 broadcast 172.31.15.255
inet6 fe80::bf:52ff:fe4a:fe3c prefixlen 64 scopeid 0x20<link>
ether 02:bf:52:4a:fe:3c txqueuelen 1000 (Ethernet)
RX packets 7111658 bytes 9681867004 (9.6 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2255773 bytes 398129876 (398.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 372613 bytes 46260682 (46.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 372613 bytes 46260682 (46.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
What OS is this ?
> Ubuntun 18.04
What version of Samba ?
Can you post the contents of the following files:
/etc/resolv.conf
> search transmitcorp.com
nameserver 127.0.0.1
options edns0
/etc/hostname
127.0.0.1 localhost php7.localhost adc1
120.0.0.1 php7.localhost
172.31.6.15 adc1
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/hosts
>
search transmitcorp.com
nameserver 127.0.0.1
options edns0
/etc/samba/smb.conf (or wherever smb.conf is on your DC)
> # Global parameters
[global]
dns forwarder = 8.8.8.8
netbios name = ADC1
realm = TRANSMITCORP.COM
server role = active directory domain controller
workgroup = TRANSMITCORP
idmap_ldb:use rfc2307 = yes
[netlogon]
path = /var/lib/samba/sysvol/transmitcorp.com/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
Rowland
Lionel
--
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