The branch, v3-2-test has been updated
       via  37091859126167e84e55afe8a32025ac0f65065e (commit)
      from  bf960f57e7adf09cdf096f2c72065ea1ff8b0daa (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 37091859126167e84e55afe8a32025ac0f65065e
Author: Günther Deschner <[EMAIL PROTECTED]>
Date:   Thu Apr 3 17:23:22 2008 +0200

    Fix pam_winbind macros.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/nsswitch/pam_winbind.c |    4 ++--
 source/nsswitch/pam_winbind.h |   24 ++++++++++++------------
 2 files changed, 14 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c
index 9a9bce7..47e0e3c 100644
--- a/source/nsswitch/pam_winbind.c
+++ b/source/nsswitch/pam_winbind.c
@@ -3,7 +3,7 @@
    Copyright Andrew Tridgell <[EMAIL PROTECTED]> 2000
    Copyright Tim Potter <[EMAIL PROTECTED]> 2000
    Copyright Andrew Bartlett <[EMAIL PROTECTED]> 2002
-   Copyright Guenther Deschner <[EMAIL PROTECTED]> 2005-2007
+   Copyright Guenther Deschner <[EMAIL PROTECTED]> 2005-2008
 
    largely based on pam_userdb by Cristian Gafton <[EMAIL PROTECTED]> also
    contains large slabs of code from pam_unix by Elliot Lee
@@ -2690,7 +2690,7 @@ struct pam_module _pam_winbind_modstruct = {
  * Copyright (c) Andrew Tridgell  <[EMAIL PROTECTED]>   2000
  * Copyright (c) Tim Potter       <[EMAIL PROTECTED]>     2000
  * Copyright (c) Andrew Bartlettt <[EMAIL PROTECTED]> 2002
- * Copyright (c) Guenther Deschner <[EMAIL PROTECTED]>      2005-2007
+ * Copyright (c) Guenther Deschner <[EMAIL PROTECTED]>      2005-2008
  * Copyright (c) Jan Rêkorajski 1999.
  * Copyright (c) Andrew G. Morgan 1996-8.
  * Copyright (c) Alex O. Yuriev, 1996.
diff --git a/source/nsswitch/pam_winbind.h b/source/nsswitch/pam_winbind.h
index 1725a89..be17a6f 100644
--- a/source/nsswitch/pam_winbind.h
+++ b/source/nsswitch/pam_winbind.h
@@ -122,14 +122,14 @@ do {                             \
 
 #include "winbind_client.h"
 
-#define PAM_WB_REMARK_DIRECT(h,f,x)\
+#define PAM_WB_REMARK_DIRECT(c,x)\
 {\
        const char *error_string = NULL; \
        error_string = _get_ntstatus_error_string(x);\
        if (error_string != NULL) {\
-               _make_remark(h, f, PAM_ERROR_MSG, error_string);\
+               _make_remark(c, PAM_ERROR_MSG, error_string);\
        } else {\
-               _make_remark(h, f, PAM_ERROR_MSG, x);\
+               _make_remark(c, PAM_ERROR_MSG, x);\
        };\
 };
 
@@ -145,37 +145,37 @@ do {                             \
        return ret;\
 };
 
-#define PAM_WB_REMARK_CHECK_RESPONSE(h,f,x,y)\
+#define PAM_WB_REMARK_CHECK_RESPONSE(c,x,y)\
 {\
        const char *ntstatus = x.data.auth.nt_status_string; \
        const char *error_string = NULL; \
        if (!strcasecmp(ntstatus,y)) {\
                error_string = _get_ntstatus_error_string(y);\
                if (error_string != NULL) {\
-                       _make_remark(h, f, PAM_ERROR_MSG, error_string);\
+                       _make_remark(c, PAM_ERROR_MSG, error_string);\
                };\
                if (x.data.auth.error_string[0] != '\0') {\
-                       _make_remark(h, f, PAM_ERROR_MSG, 
x.data.auth.error_string);\
+                       _make_remark(c, PAM_ERROR_MSG, 
x.data.auth.error_string);\
                };\
-               _make_remark(h, f, PAM_ERROR_MSG, y);\
+               _make_remark(c, PAM_ERROR_MSG, y);\
        };\
 };
 
-#define PAM_WB_REMARK_CHECK_RESPONSE_RET(h,f,x,y)\
+#define PAM_WB_REMARK_CHECK_RESPONSE_RET(c,x,y)\
 {\
        const char *ntstatus = x.data.auth.nt_status_string; \
        const char *error_string = NULL; \
        if (!strcasecmp(ntstatus,y)) {\
                error_string = _get_ntstatus_error_string(y);\
                if (error_string != NULL) {\
-                       _make_remark(h, f, PAM_ERROR_MSG, error_string);\
+                       _make_remark(c, PAM_ERROR_MSG, error_string);\
                        return ret;\
                };\
                if (x.data.auth.error_string[0] != '\0') {\
-                       _make_remark(h, f, PAM_ERROR_MSG, 
x.data.auth.error_string);\
+                       _make_remark(c, PAM_ERROR_MSG, 
x.data.auth.error_string);\
                        return ret;\
                };\
-               _make_remark(h, f, PAM_ERROR_MSG, y);\
+               _make_remark(c, PAM_ERROR_MSG, y);\
                return ret;\
        };\
 };
@@ -202,7 +202,7 @@ do {                             \
 #define PAM_WB_GRACE_LOGON(x)  ((NETLOGON_CACHED_ACCOUNT|NETLOGON_GRACE_LOGON) 
== ( x & (NETLOGON_CACHED_ACCOUNT|NETLOGON_GRACE_LOGON)))
 
 struct pwb_context {
-       const pam_handle_t *pamh;
+       pam_handle_t *pamh;
        int flags;
        int argc;
        const char **argv;


-- 
Samba Shared Repository

Reply via email to