Updated: Thu, 03 Aug 2023 17:06:24 +0300
Debian-Specific: yes
Forwarded: not-needed
Gbp-Pq: Name meaningful-error-if-no-samba-ad-provision.patch
def setup_path(file):
"""Return an absolute path to the provision template file specified by file"""
- return os.path.join(setup_dir(), file)
+ path = os.path.join(setup_dir(), file)
+ if not os.path.exists(path):
+ raise Exception("File [%s] not found. Please install samba-ad-provision package" % path)
+ return path
def setup_add_ldif(ldb, ldif_path, subst_vars=None, controls=None):