Bug 56398 - 96univention-samba4 Joinscript fails on missing SYSVOL activation
96univention-samba4 Joinscript fails on missing SYSVOL activation
Status: NEW
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-08-03 14:52 CEST by Christina Scheinig
Modified: 2023-08-03 14:52 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023072721000239
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2023-08-03 14:52:32 CEST
UCS Slave 4.4-9 (non school)
Traceback:

INFO 2023-08-02 12:16:31,721 pid:24190 /usr/lib/python2.7/dist-packages/samba/provision/__init__.py #1307: Pre-loading the Samba 4 and AD schema
Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs

Could not find machine account in secrets database: Failed to fetch machine account password for SUN from both secrets.ldb (Could not find entry to match filter: '(&(flatname=SUN)(objectclass=primaryDomain))' base: 'cn=Primary Domains': No such object: dsdb_search at ../../source4/
dsdb/common/util.c:4808) and from /var/lib/samba/private/secrets.tdb: NT_STATUS_CANT_ACCESS_DOMAIN_INFO
ERROR(<class 'samba.provision.MissingShareError'>): uncaught exception - ProvisioningError: Existing smb.conf does not have a [sysvol] share, but you are configuring a DC. Please remove /etc/samba/smb.conf or add the share manually.
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 185, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 700, in run
    backend_store=backend_store)
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1545, in join_DC
    ctx.do_join()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 1438, in do_join
    ctx.join_provision()
  File "/usr/lib/python2.7/dist-packages/samba/join.py", line 885, in join_provision
    backend_store=ctx.backend_store
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 2594, in provision
    raise MissingShareError("sysvol", paths.smbconf)
Deleted CN=RID Set,CN=OPSI,OU=Domain Controllers,DC=local,DC=schein,DC=de


Solution:
ucr set samba/share/sysvol=true

I am not sure this should or can be catched in some way? Otherwise the issue is found here for others.