Univention Corporate Server (UCS) » Services for Windows

ID #1381

Samba don't start with "Samba is not configured as AD DC"

If samba don't start anymore with the following error messages:
Produktlogo UCS Samba4

(not on a memberserver [ucr get server/role] or with samba NT)

root@ucs-master:~# /etc/init.d/samba-ad-dc restart
Stopping Samba AD DC daemon: samba.
Samba is not configured as AD DC.
OR

root@ucs-master:~# /etc/init.d/samba restart
Stopping Samba AD DC daemon: samba.
Stopping NetBIOS name server: nmbd.
Starting NetBIOS name server: nmbd.
smbd disabled by ucr var samba/autostart=no
Samba is not configured as AD DC.

you have to check the smb.conf in /etc/samba/

The following command can be used:
samba-tool testparm --parameter-name="server role"  2>/dev/null | tail -1

The expected output is:
active directory domain controller

If there is no output, something is misconfigured.

Possible misconfigurations are:

  • shares with double spaces in their name
  • empty smb.conf
  • included files which do not exist on the filesystem

Tags: samba-ad-dc, samba4, shares

Related entries:

Last update: 2017-02-27 09:19
Author: christina scheinig
Revision: 1.6

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry