diff options
author | Günther Deschner <gd@samba.org> | 2008-10-10 15:13:14 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-10-10 15:24:06 +0200 |
commit | 08d3918cf8773f1a3f67a82123ebe006ea581e4e (patch) | |
tree | d1252b49230698ad9997043cee694487d73e3183 /source3/nsswitch | |
parent | 63291018df809296479147a91c055e296b9ce772 (diff) | |
download | samba-08d3918cf8773f1a3f67a82123ebe006ea581e4e.tar.gz samba-08d3918cf8773f1a3f67a82123ebe006ea581e4e.tar.xz samba-08d3918cf8773f1a3f67a82123ebe006ea581e4e.zip |
libwbclient: fix wbcAuthenticateUserEx() to not ignore provided flags field.
Guenther
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/libwbclient/wbc_pam.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_pam.c b/source3/nsswitch/libwbclient/wbc_pam.c index 70e2aa60a53..91ea72f05fd 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); |