mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-31 19:31:07 +02:00
overlay coreos/user-patches: Add a user patch for sys-auth/sssd
This commit is contained in:
parent
f18907e21c
commit
ed9748250e
@ -0,0 +1,34 @@
|
||||
From a559550c8e2d162735ff8a43de6dc59af71cf3df Mon Sep 17 00:00:00 2001
|
||||
From: Krzesimir Nowak <knowak@microsoft.com>
|
||||
Date: Tue, 3 Dec 2024 19:05:44 +0100
|
||||
Subject: [PATCH] Assume that callbacks are not broken in OpenLDAP when
|
||||
cross-compiling
|
||||
|
||||
If we do cross-compiling against a known broken version of OpenLDAP,
|
||||
we can do `export ac_cv_member_struct_ldap_conncb_lc_arg=no` before
|
||||
running configure. This is rather unlikely now, as the test was done
|
||||
to detect a bug that was fixed 16 years ago.
|
||||
|
||||
This allows the project to be configured successfully when
|
||||
cross-compiling, without disabling connection callbacks.
|
||||
---
|
||||
src/external/ldap.m4 | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/external/ldap.m4 b/src/external/ldap.m4
|
||||
index f42023cd4..09e44fc7b 100644
|
||||
--- a/src/external/ldap.m4
|
||||
+++ b/src/external/ldap.m4
|
||||
@@ -80,7 +80,8 @@ AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg],
|
||||
[AC_DEFINE([HAVE_LDAP_CONNCB], [1],
|
||||
[Define if LDAP connection callbacks are available])],
|
||||
[AC_MSG_WARN([Found broken callback implementation])],
|
||||
- [])],
|
||||
+ [AC_DEFINE([HAVE_LDAP_CONNCB], [1],
|
||||
+ [Define if LDAP connection callbacks are available])])],
|
||||
[], [[#include <ldap.h>]])
|
||||
|
||||
AC_CHECK_TYPE([LDAPDerefRes],
|
||||
--
|
||||
2.34.1
|
||||
|
3
sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-auth/sssd/README.md
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-auth/sssd/README.md
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
The `0001-Assume-that-callbacks-are-not-broken-in-OpenLDAP-whe.patch` allows
|
||||
the project to be cross-compiled without disabling LDAP connection
|
||||
callbacks. It is being upstreamed.
|
Loading…
x
Reference in New Issue
Block a user