[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4444-g309f02b

Günther Deschner gd at samba.org
Wed Nov 19 14:18:09 GMT 2008


The branch, v3-3-test has been updated
       via  309f02b20f8a83508eb639889058993fede34bc4 (commit)
      from  f13c2da16d62c9279a84c4a2da1b52c7b6d38fac (commit)

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


- Log -----------------------------------------------------------------
commit 309f02b20f8a83508eb639889058993fede34bc4
Author: Günther Deschner <gd at samba.org>
Date:   Fri Oct 10 15:13:14 2008 +0200

    libwbclient: fix wbcAuthenticateUserEx() to not ignore provided flags field.
    
    Guenther
    (cherry picked from commit 08d3918cf8773f1a3f67a82123ebe006ea581e4e)

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

Summary of changes:
 source/nsswitch/libwbclient/wbc_pam.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/libwbclient/wbc_pam.c b/source/nsswitch/libwbclient/wbc_pam.c
index 70e2aa6..91ea72f 100644
--- a/source/nsswitch/libwbclient/wbc_pam.c
+++ b/source/nsswitch/libwbclient/wbc_pam.c
@@ -332,6 +332,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
 				params->account_name,
 				sizeof(request.data.auth.user)-1);
 		}
+
 		strncpy(request.data.auth.pass,
 			params->password.plaintext,
 			sizeof(request.data.auth.pass)-1);
@@ -417,6 +418,10 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
 		BAIL_ON_WBC_ERROR(wbc_status);
 	}
 
+	if (params->flags) {
+		request.flags |= params->flags;
+	}
+
 	wbc_status = wbcRequestResponse(cmd,
 					&request,
 					&response);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list