The branch, v3-5-test has been updated
       via  9a522cd... s3: Fix build on non-linux platform.
      from  7097f61... s3: Give the user a chance to change password when 
password will expire soon.

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


- Log -----------------------------------------------------------------
commit 9a522cd96d66f6a6cf5f483fb8928982bbe95ea4
Author: Bo Yang <[email protected]>
Date:   Thu Dec 10 17:20:03 2009 +0800

    s3: Fix build on non-linux platform.
    
    Signed-off-by: Bo Yang <[email protected]>
    (cherry picked from commit b386c3311d8c05ccbd075ab86be2ddace335b73b)

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

Summary of changes:
 nsswitch/pam_winbind.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index f82a7be..debffed 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -807,6 +807,8 @@ static int wbc_auth_error_to_pam_error(struct pwb_context 
*ctx,
        return pam_winbind_request_log(ctx, ret, username, fn);
 }
 
+/* PAM_RADIO_TYPE is linux-only. */
+#ifdef LINUX
 static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
 {
        struct pam_message msg, *pmsg;
@@ -837,6 +839,12 @@ static bool _pam_winbind_change_pwd(struct pwb_context 
*ctx)
        _pam_drop_reply(resp, 1);
        return retval;
 }
+#else
+static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
+{
+       return false;
+}
+#endif
 
 
 /**


-- 
Samba Shared Repository

Reply via email to