samba: Add PACKAGECONFIG[ad-dc] python3-markdown RDEPENDS

For Samba's Active Directory Domain Controller functionality, it needs
to have python3-markdown listed as an RDEPENDS as well as a DEPENDS.

When trying to provision a domain with samba-tool without this change
then it will error out like:

$ samba-tool domain provision --realm=EXAMPLE.COM --domain=EXAMPLE \
	--adminpass='YourPassword123!' --server-role=dc \
	--dns-backend=SAMBA_INTERNAL --use-rfc2307
<snip>
Temporarily overriding 'dsdb:schema update allowed' setting
ERROR(<class 'ModuleNotFoundError'>): uncaught exception - No module named 'markdown'
  File "/usr/lib/python3.13/site-packages/samba/netcmd/init.py", line 279, in _run
	return self.run(*args, **kwargs)
		   ~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/samba/netcmd/domain/provision.py", line 343, in run
	result = provision(self.logger,
					   session, smbconf=smbconf, targetdir=targetdir,
	...<16 lines>...
					   backend_store=backend_store,
					   backend_store_size=backend_store_size)
  File "/usr/lib/python3.13/site-packages/samba/provision/init.py", line 2404, in provision
	raise e
  File "/usr/lib/python3.13/site-packages/samba/provision/init.py", line 2394, in provision
	forest = ForestUpdate(samdb, fix=True)
  File "/usr/lib/python3.13/site-packages/samba/forest_update.py", line 212, in init
	from samba.ms_forest_updates_markdown import read_ms_markdown
  File "/usr/lib/python3.13/site-packages/samba/ms_forest_updates_markdown.py", line 27, in <module>
	import markdown

Signed-off-by: Andrew Bradford <andrew.bradford@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Andrew Bradford 2025-10-07 12:58:19 -04:00 committed by Khem Raj
parent c8e8890991
commit ec7f6f5660
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -93,7 +93,7 @@ PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind"
PACKAGECONFIG[gpgme] = "--with-gpgme,--without-gpgme,gpgme"
PACKAGECONFIG[lmdb] = ",--without-ldb-lmdb,lmdb"
PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython,"
PACKAGECONFIG[ad-dc] = "--with-experimental-mit-ad-dc,--without-ad-dc,python3-markdown python3-dnspython,python3-markdown"
PACKAGECONFIG[mitkrb5] = "--with-system-mitkrb5 --with-system-mitkdc=/usr/sbin/krb5kdc,,krb5,"
SAMBA4_IDMAP_MODULES = "idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"