[SCM] Samba Shared Repository - branch master updated -
08d3918cf8773f1a3f67a82123ebe006ea581e4e
Günther Deschner
gd at samba.org
Fri Oct 10 13:27:21 GMT 2008
The branch, master has been updated
via 08d3918cf8773f1a3f67a82123ebe006ea581e4e (commit)
from 63291018df809296479147a91c055e296b9ce772 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 08d3918cf8773f1a3f67a82123ebe006ea581e4e
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
-----------------------------------------------------------------------
Summary of changes:
source3/nsswitch/libwbclient/wbc_pam.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/nsswitch/libwbclient/wbc_pam.c b/source3/nsswitch/libwbclient/wbc_pam.c
index 70e2aa6..91ea72f 100644
--- a/source3/nsswitch/libwbclient/wbc_pam.c
+++ b/source3/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