Skip to content

Commit af82e35

Browse files
committed
Added support on SuSE for user promises without lib PAM
On older SuSE distributions the PAM modules are linked to an older version of openssl/libcrypt than we vendor and so when cf-agent tries to use PAM the modules fail to load and operations fail. Ticket: ENT-14406 Changelog: title
1 parent 8a337ed commit af82e35

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

configure.ac

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,9 +1025,19 @@ AS_IF([test x$with_pam != xno],
10251025
[users_promises_ok=yes],
10261026
[users_promises_ok=no])
10271027
])
1028-
], [
1029-
users_promises_ok=no
1028+
],
1029+
[
1030+
user_promises_ok=no
10301031
])
1032+
AS_CASE(["$target_os"],
1033+
[sles|*suse*|*alpine*],
1034+
[
1035+
AS_IF([test "x$have_userprogs" = "xyes"],
1036+
[users_promises_ok=yes],
1037+
[users_promises_ok=no])
1038+
users_promises_ok=no
1039+
])
1040+
10311041
AM_CONDITIONAL(HAVE_USERS_PROMISE_DEPS, [test "x$users_promises_ok" = "xyes"])
10321042

10331043
AC_CHECK_DECLS(getnetgrent, [], [], [[#include <netdb.h>]])

0 commit comments

Comments
 (0)