Bug 56870 - Samba join fails due to missing package samba-ad-provision
Samba join fails due to missing package samba-ad-provision
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 5.2
Other Linux
: P5 normal (vote)
: UCS 5.0-5-errata
Assigned To: Arvid Requate
Felix Botner
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-11-24 12:05 CET by Arvid Requate
Modified: 2023-11-29 14:56 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.343
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023110821000123
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 Arvid Requate univentionstaff 2023-11-24 12:05:58 CET
Feedback:

Version: 5.0-5 errata798

Remark: unable to join

Error:
Domain setup (this might take a while): Please visit https://help.univention.com/t/8842 for common problems during the join and how to fix them -- FAILED:
96univention-samba4.inst
Configure 96univention-samba4.inst Tue Nov  7 21:44:26 WET 2023
[... see ticket]
ERROR(exception): uncaught exception - File [/usr/share/samba/setup/ad-schema/AD_DS_Attributes__Windows_Server_2012_R2.ldf] not found. Please install samba-ad-provision package
  File "%PY3%/samba/netcmd/__init__.py", line 230, in _run
    return self.run(*args, **kwargs)
  File "%PY3%/samba/netcmd/domain.py", line 753, in run
    backend_store_size=backend_store_size)
  File "%PY3%/samba/join.py", line 1598, in join_DC
    ctx.do_join()
  File "%PY3%/samba/join.py", line 1486, in do_join
    ctx.join_add_objects()
  File "%PY3%/samba/join.py", line 668, in join_add_objects
    ctx.join_add_ntdsdsa()
  File "%PY3%/samba/join.py", line 593, in join_add_ntdsdsa
    ctx.DsAddEntry([rec])
  File "%PY3%/samba/join.py", line 479, in DsAddEntry
    ctx.create_tmp_samdb()
  File "%PY3%/samba/join.py", line 462, in create_tmp_samdb
    schemadn=ctx.schema_dn)
  File "%PY3%/samba/schema.py", line 110, in __init__
    setup_path('ad-schema/%s' % Schema.base_schemas[base_schema][0]),
  File "%PY3%/samba/provision/common.py", line 44, in setup_path
    raise Exception("File [%s] not found. Please install samba-ad-provision package" % path)
Comment 1 Arvid Requate univentionstaff 2023-11-24 12:07:31 CET
samba-ad-provision is a new binary package generated from the samba source package.
Apparently there's a dependency missing.
Comment 2 Arvid Requate univentionstaff 2023-11-24 12:11:24 CET
Role: domaincontroller_slave
Comment 3 Arvid Requate univentionstaff 2023-11-27 12:47:31 CET
0cb958e1f | samba-ad-dc depends on samba-ad-provision
f7aed51ab6 | Advisory update
Comment 4 Arvid Requate univentionstaff 2023-11-27 12:53:33 CET
The actual issue seems to be that the package is missing on the iso.
With the newly added dependency (instead of just a recommends), it should
land on the next iso built and released (for 5.0-6).
Comment 5 Felix Botner univentionstaff 2023-11-27 15:17:17 CET
OK - univention-samba4 depends on samba-ad-dc which depends on samba-ad-provisioning
OK -YAML