Bug 10511 - KDC not starting up if network not ready
KDC not starting up if network not ready
Status: ASSIGNED
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB
4.1.6
All All
: P5 normal
: ---
Assigned To: Stefan Metzmacher
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-21 10:27 UTC by Björn Jacke
Modified: 2015-07-31 08:29 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2014-03-21 10:27:13 UTC
on a AD DC with no network interface up OR no IP configured (yet) we get those 
messages while starting up:

[2014/03/21 03:08:21.146639,  0] ../source4/lib/socket/interface.c:325(load_interface_list)
 WARNING: no network interfaces found
[2014/03/21 03:08:21.147467,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
 task_server_terminate: [kdc: no network interfaces configured]

the first one is a legit warning but the second is a problem. The KDC does not start.

let's have a look at netstat -anp|grep "LISTEN " | grep samba :

*Without* network at startup time:
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      12822/samba         
tcp        0      0 0.0.0.0:636             0.0.0.0:*               LISTEN      12814/samba         
tcp        0      0 0.0.0.0:1024            0.0.0.0:*               LISTEN      12810/samba
tcp        0      0 0.0.0.0:3268            0.0.0.0:*               LISTEN      12814/samba
tcp        0      0 0.0.0.0:3269            0.0.0.0:*               LISTEN      12814/samba
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      12814/samba
tcp        0      0 0.0.0.0:135             0.0.0.0:*               LISTEN      12810/samba

*WITH* network at startup time we also see:
tcp        0      0 0.0.0.0:464             0.0.0.0:*               LISTEN      12671/samba
tcp        0      0 0.0.0.0:88              0.0.0.0:*               LISTEN      12671/samba
Comment 1 Björn Jacke 2014-03-21 15:06:02 UTC
those udp listening sockets are also missing if the network interface was not configured at startup:

udp        0      0 0.0.0.0:389             0.0.0.0:*                           21764/samba         
udp        0      0 0.0.0.0:464             0.0.0.0:*                           21765/samba         
udp        0      0 0.0.0.0:53              0.0.0.0:*                           21771/samba         
udp        0      0 0.0.0.0:88              0.0.0.0:*                           21765/samba         
udp        0      0 0.0.0.0:137             0.0.0.0:*                           21761/samba         

we only listen on 0.0.0.0:138 udp with a non configured network interface