summaryrefslogtreecommitdiff
path: root/source3/nsswitch/libwbclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-10 15:13:14 +0200
committerGünther Deschner <gd@samba.org>2008-10-10 15:24:06 +0200
commit08d3918cf8773f1a3f67a82123ebe006ea581e4e (patch)
treed1252b49230698ad9997043cee694487d73e3183 /source3/nsswitch/libwbclient
parent63291018df809296479147a91c055e296b9ce772 (diff)
downloadsamba-08d3918cf8773f1a3f67a82123ebe006ea581e4e.tar.gz
samba-08d3918cf8773f1a3f67a82123ebe006ea581e4e.tar.bz2
samba-08d3918cf8773f1a3f67a82123ebe006ea581e4e.zip
libwbclient: fix wbcAuthenticateUserEx() to not ignore provided flags field.
Guenther
Diffstat (limited to 'source3/nsswitch/libwbclient')
-rw-r--r--source3/nsswitch/libwbclient/wbc_pam.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_pam.c b/source3/nsswitch/libwbclient/wbc_pam.c
index 70e2aa60a5..91ea72f05f 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);