mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
pam_winbind: fix what data we put into the blobs.
Guenther
This commit is contained in:
parent
67018ed8bd
commit
7f36d3b550
@ -1615,14 +1615,16 @@ static int winbind_auth_request(struct pwb_context *ctx,
|
||||
logon.username = user;
|
||||
logon.password = pass;
|
||||
|
||||
wbc_status = wbcAddNamedBlob(&logon.num_blobs,
|
||||
&logon.blobs,
|
||||
"krb5_cc_type",
|
||||
0,
|
||||
(uint8_t *)cctype,
|
||||
strlen(cctype)+1);
|
||||
if (!WBC_ERROR_IS_OK(wbc_status)) {
|
||||
goto done;
|
||||
if (cctype) {
|
||||
wbc_status = wbcAddNamedBlob(&logon.num_blobs,
|
||||
&logon.blobs,
|
||||
"krb5_cc_type",
|
||||
0,
|
||||
(uint8_t *)cctype,
|
||||
strlen(cctype)+1);
|
||||
if (!WBC_ERROR_IS_OK(wbc_status)) {
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
wbc_status = wbcAddNamedBlob(&logon.num_blobs,
|
||||
@ -1645,14 +1647,16 @@ static int winbind_auth_request(struct pwb_context *ctx,
|
||||
goto done;
|
||||
}
|
||||
|
||||
wbc_status = wbcAddNamedBlob(&logon.num_blobs,
|
||||
&logon.blobs,
|
||||
"membership_of",
|
||||
0,
|
||||
(uint8_t *)membership_of,
|
||||
sizeof(membership_of));
|
||||
if (!WBC_ERROR_IS_OK(wbc_status)) {
|
||||
goto done;
|
||||
if (member) {
|
||||
wbc_status = wbcAddNamedBlob(&logon.num_blobs,
|
||||
&logon.blobs,
|
||||
"membership_of",
|
||||
0,
|
||||
(uint8_t *)membership_of,
|
||||
sizeof(membership_of));
|
||||
if (!WBC_ERROR_IS_OK(wbc_status)) {
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
wbc_status = wbcLogonUser(&logon, &info, &error, &policy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user