Activity log for bug #2051363

Date Who What changed Old value New value Message
2024-01-26 11:54:16 Gabriel Nagy bug added bug
2024-01-26 12:09:25 Gabriel Nagy adsys (Ubuntu): status New Fix Committed
2024-01-26 17:26:15 Launchpad Janitor adsys (Ubuntu): status Fix Committed Fix Released
2024-06-26 13:10:11 Gabriel Nagy description NDES role should not be mandatory in order to perform certificate auto-enrollment with adsys. Samba/ADSys is able to take advantage of the NDES endpoint to install the root certificate chain, but is also able to infer the certificate information from LDAP. Due to a bug in the Samba implementation of cert-autoenroll, the root cert is not parsed properly if the NDES component is not installed -- so in the current state attempting auto-enrollment without NDES installed will result in an error like the following: 2024-01-08 16:11:07.809|[W26775]| Failed to fetch the root certificate chain. | {} 2024-01-08 16:11:07.809|[W05621]| The Network Device Enrollment Service is either not installed or not configured. | {} 2024-01-08 16:11:07.809|[W11946]| Installing the server certificate only. | {} Traceback (most recent call last): File "<string>", line 142, in <module> File "<string>", line 89, in main File "<string>", line 20, in enroll File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 502, in __enroll self.apply(guid, ca, cert_enroll, ca, ldb, trust_dir, File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 369, in apply data = applier_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 274, in cert_enroll root_certs = getca(ca, url, trust_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 221, in getca cert = load_der_x509_certificate(ca['cACertificate'], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cryptography/x509/base.py", line 528, in load_der_x509_certificate return rust_x509.load_der_x509_certificate(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument 'data': 'str' object cannot be converted to 'PyBytes' This bug is not being verified individually because of the use of the SRU exception process (LP: #2059756) ----- NDES role should not be mandatory in order to perform certificate auto-enrollment with adsys. Samba/ADSys is able to take advantage of the NDES endpoint to install the root certificate chain, but is also able to infer the certificate information from LDAP. Due to a bug in the Samba implementation of cert-autoenroll, the root cert is not parsed properly if the NDES component is not installed -- so in the current state attempting auto-enrollment without NDES installed will result in an error like the following: 2024-01-08 16:11:07.809|[W26775]| Failed to fetch the root certificate chain. | {} 2024-01-08 16:11:07.809|[W05621]| The Network Device Enrollment Service is either not installed or not configured. | {} 2024-01-08 16:11:07.809|[W11946]| Installing the server certificate only. | {} Traceback (most recent call last):   File "<string>", line 142, in <module>   File "<string>", line 89, in main   File "<string>", line 20, in enroll   File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 502, in __enroll     self.apply(guid, ca, cert_enroll, ca, ldb, trust_dir,   File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 369, in apply     data = applier_func(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 274, in cert_enroll     root_certs = getca(ca, url, trust_dir)                  ^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/share/adsys/python/vendor_samba/gp/gp_cert_auto_enroll_ext.py", line 221, in getca     cert = load_der_x509_certificate(ca['cACertificate'],            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3/dist-packages/cryptography/x509/base.py", line 528, in load_der_x509_certificate     return rust_x509.load_der_x509_certificate(data)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: argument 'data': 'str' object cannot be converted to 'PyBytes'
2024-06-28 20:41:43 Steve Langasek adsys (Ubuntu Jammy): status New Fix Committed
2024-06-28 20:41:44 Steve Langasek bug added subscriber Ubuntu Stable Release Updates Team
2024-06-28 20:41:46 Steve Langasek bug added subscriber SRU Verification
2024-06-28 20:41:48 Steve Langasek tags verification-needed verification-needed-jammy
2024-07-04 12:03:27 Gabriel Nagy tags verification-needed verification-needed-jammy verification-done verification-done-jammy
2024-07-04 18:34:28 Andreas Hasenack adsys (Ubuntu Mantic): status New Fix Committed
2024-07-04 18:34:34 Andreas Hasenack tags verification-done verification-done-jammy verification-done-jammy verification-needed verification-needed-mantic
2024-07-05 08:17:34 Gabriel Nagy tags verification-done-jammy verification-needed verification-needed-mantic verification-done verification-done-jammy verification-done-mantic
2024-07-09 18:11:25 Launchpad Janitor adsys (Ubuntu Jammy): status Fix Committed Fix Released
2024-07-09 18:11:25 Launchpad Janitor cve linked 2024-3094
2024-07-09 18:12:14 Brian Murray removed subscriber Ubuntu Stable Release Updates Team
2024-07-25 20:39:24 Brian Murray adsys (Ubuntu Mantic): status Fix Committed Won't Fix