mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
wbinfo: ask wbcAuthenticateUserEx() for user info to test the more complex code path
metze
This commit is contained in:
parent
237c2e9738
commit
432a77e0d7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user