diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-02-15 10:40:43 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-02-15 11:55:17 +0100 |
commit | 2c14442e8d20b5005d22ab6874f2e75975b85214 (patch) | |
tree | f5d4c648dc55269f9b3c8752258013b2f9c8695e /source3/nsswitch | |
parent | 23b7f7ea095644b1a5ba104fde5841676dfc9ed4 (diff) | |
download | samba-2c14442e8d20b5005d22ab6874f2e75975b85214.tar.gz samba-2c14442e8d20b5005d22ab6874f2e75975b85214.tar.bz2 samba-2c14442e8d20b5005d22ab6874f2e75975b85214.zip |
wbinfo: ask wbcAuthenticateUserEx() for user info to test the more complex code path
metze
(This used to be commit 432a77e0d7dbd52fd230e4ee9641b6ab4f4d3b73)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/wbinfo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index 689dc5e9e1..ee51cce835 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/nsswitch/wbinfo.c @@ -906,6 +906,7 @@ static bool wbinfo_auth_crap(char *username) { wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE; struct wbcAuthUserParams params; + struct wbcAuthUserInfo *info = NULL; struct wbcAuthErrorInfo *err = NULL; DATA_BLOB lm = data_blob_null; DATA_BLOB nt = data_blob_null; @@ -974,7 +975,7 @@ static bool wbinfo_auth_crap(char *username) params.password.response.lm_length = lm.length; params.password.response.lm_data = lm.data; - wbc_status = wbcAuthenticateUserEx(¶ms, NULL, &err); + wbc_status = wbcAuthenticateUserEx(¶ms, &info, &err); /* Display response */ @@ -987,6 +988,8 @@ static bool wbinfo_auth_crap(char *username) err->nt_status, err->display_string); wbcFreeMemory(err); + } else if (WBC_ERROR_IS_OK(wbc_status)) { + wbcFreeMemory(info); } data_blob_free(&nt); |