]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
third_party: Update pam_wrapper to version 1.1.8
authorAndreas Schneider <asn@samba.org>
Mon, 16 Jun 2025 05:45:21 +0000 (07:45 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 17 Jun 2025 08:38:35 +0000 (08:38 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jun 17 08:38:35 UTC 2025 on atb-devel-224

buildtools/wafsamba/samba_third_party.py
third_party/pam_wrapper/modules/pam_matrix.c
third_party/pam_wrapper/wscript

index 3637fe2e59f83c7737d9d26b4d6f82cfbbb9b2cf..a3c45775a4b9c8dde1cd719fa2a527ad2cc31b4e 100644 (file)
@@ -44,5 +44,5 @@ Build.BuildContext.CHECK_UID_WRAPPER = CHECK_UID_WRAPPER
 
 @conf
 def CHECK_PAM_WRAPPER(conf):
-    return conf.CHECK_BUNDLED_SYSTEM_PKG('pam_wrapper', minversion='1.1.7')
+    return conf.CHECK_BUNDLED_SYSTEM_PKG('pam_wrapper', minversion='1.1.8')
 Build.BuildContext.CHECK_PAM_WRAPPER = CHECK_PAM_WRAPPER
index cc6fbf37e8200c6ada7a01e4025abc11cb5a3f64..6758d9cd5a461f0e77f05477dff8235a8ec43aa6 100644 (file)
@@ -581,6 +581,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
                    int argc, const char *argv[])
 {
        struct pam_matrix_ctx pctx;
+       const void *pwd = NULL;
        int rv;
 
        (void) flags; /* unused */
@@ -594,11 +595,12 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
        }
 
        rv = pam_matrix_read_password(pamh, pctx.flags, PAM_AUTHTOK, "Password: ",
-                                     NULL, (const void **) &pctx.pli.password);
+                                     NULL, &pwd);
        if (rv != PAM_SUCCESS) {
                rv = PAM_AUTHINFO_UNAVAIL;
                goto done;
        }
+       pctx.pli.password = discard_const(pwd);
 
        /* Auth and get rid of the authtok */
        rv = pam_matrix_auth(pamh, &pctx);
@@ -763,6 +765,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags,
 {
        struct pam_matrix_ctx pctx;
        const char *old_pass;
+       const void *pwd = NULL;
        int rv;
        time_t *auth_stamp = NULL;
        const time_t *auth_stamp_out = NULL;
@@ -780,11 +783,12 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags,
                rv = pam_matrix_read_password(
                                        pamh, pctx.flags, PAM_OLDAUTHTOK,
                                        "Old password: ", NULL,
-                                       (const void **) &pctx.pli.password);
+                                       &pwd);
                if (rv != PAM_SUCCESS) {
                        rv = PAM_AUTHINFO_UNAVAIL;
                        goto done;
                }
+               pctx.pli.password = discard_const(pwd);
 
                auth_stamp = malloc(sizeof(time_t));
                if (auth_stamp == NULL) {
@@ -824,11 +828,12 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags,
                                        PAM_AUTHTOK,
                                        "New Password :",
                                        "Verify New Password :",
-                                       (const void **) &pctx.pli.password);
+                                       &pwd);
                if (rv != PAM_SUCCESS) {
                        rv = PAM_AUTHINFO_UNAVAIL;
                        goto done;
                }
+               pctx.pli.password = discard_const(pwd);
 
                /* Write the new password to the db */
                rv = pam_matrix_lib_items_put(pctx.passdb, &pctx.pli);
index 4ee5765269e49869ccd7e7dd95a74b2bf5d58226..9b6a1d507a88163a03a6fcc487967c4df1469b4d 100644 (file)
@@ -2,7 +2,8 @@
 
 import os
 
-VERSION="1.1.7"
+VERSION = "1.1.8"
+
 
 def find_library(library_names, lookup_paths):
     for directory in lookup_paths: