1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

This is the fix for the PAM bug I probably introduced in the previous commit,

which I will confirm once I can find a box it would break on in the first place.

(this is the pam accounts as nobody thing we had with 2.2.0)

Andrew Bartlett
This commit is contained in:
Andrew Bartlett -
parent b30b6202f3
commit 9746ad12bd
2 changed files with 6 additions and 0 deletions

View File

@ -131,7 +131,10 @@ uint32 check_password(const auth_usersupplied_info *user_info, auth_serversuppli
}
if (nt_status == NT_STATUS_NOPROBLEMO) {
/* We might not be root if we are an RPC call */
become_root();
nt_status = smb_pam_accountcheck(user_info->smb_username.str);
unbecome_root();
}
if (nt_status == NT_STATUS_NOPROBLEMO) {

View File

@ -131,7 +131,10 @@ uint32 check_password(const auth_usersupplied_info *user_info, auth_serversuppli
}
if (nt_status == NT_STATUS_NOPROBLEMO) {
/* We might not be root if we are an RPC call */
become_root();
nt_status = smb_pam_accountcheck(user_info->smb_username.str);
unbecome_root();
}
if (nt_status == NT_STATUS_NOPROBLEMO) {