[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Wed Sep 19 07:07:02 MDT 2012


The branch, master has been updated
       via  98d90c0 pam_winbind: match more return codes when wbcGetPwnam has failed.
      from  f6e33eb s3: Use SBVAL in put_long_date_timespec

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 98d90c02f0961d173bebb9901c7ad0819827f96e
Author: Günther Deschner <gd at samba.org>
Date:   Wed Sep 19 10:59:50 2012 +0200

    pam_winbind: match more return codes when wbcGetPwnam has failed.
    
    This is required to properly return PAM_USER_UNKNOWN in case winbind had a
    problem.
    
    Guenther
    
    Autobuild-User(master): Günther Deschner <gd at samba.org>
    Autobuild-Date(master): Wed Sep 19 15:06:10 CEST 2012 on sn-devel-104

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

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


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index fb84985..83d7bb6 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -2064,6 +2064,9 @@ static int valid_user(struct pwb_context *ctx,
 
 	switch (wbc_status) {
 		case WBC_ERR_UNKNOWN_USER:
+		/* match other insane libwbclient return codes */
+		case WBC_ERR_WINBIND_NOT_AVAILABLE:
+		case WBC_ERR_DOMAIN_NOT_FOUND:
 			return 1;
 		case WBC_ERR_SUCCESS:
 			return 0;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list