The Samba-Bugzilla – Attachment 7042 Details for
Bug 8550
Calls inside netr_set_machine_account_password() to set the machine account password must be done as root.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix from master.
0001-s3-netlogon-Fix-setting-the-machinge-account-passwor.patch (text/plain), 1.44 KB, created by
Jeremy Allison
on 2011-10-28 00:27:59 UTC
(
hide
)
Description:
git-am fix from master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2011-10-28 00:27:59 UTC
Size:
1.44 KB
patch
obsolete
>From ef20b0e8f64cada8a1fba77f86726f036084a9f1 Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Thu, 27 Oct 2011 11:21:08 +0200 >Subject: [PATCH] s3-netlogon: Fix setting the machinge account password. > >This bug has been found with uid wrapper. >(cherry picked from commit bda9752b1036c4d4db76a526a79a091419bf757c) >--- > source3/rpc_server/netlogon/srv_netlog_nt.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c >index aa424e0..ecdfac7 100644 >--- a/source3/rpc_server/netlogon/srv_netlog_nt.c >+++ b/source3/rpc_server/netlogon/srv_netlog_nt.c >@@ -1120,6 +1120,7 @@ static NTSTATUS netr_set_machine_account_password(TALLOC_CTX *mem_ctx, > goto out; > } > >+ become_root(); > status = samr_find_machine_account(mem_ctx, > h, > account_name, >@@ -1127,6 +1128,7 @@ static NTSTATUS netr_set_machine_account_password(TALLOC_CTX *mem_ctx, > NULL, > NULL, > &user_handle); >+ unbecome_root(); > if (!NT_STATUS_IS_OK(status)) { > goto out; > } >@@ -1170,12 +1172,14 @@ static NTSTATUS netr_set_machine_account_password(TALLOC_CTX *mem_ctx, > > info->info18 = info18; > >+ become_root(); > status = dcerpc_samr_SetUserInfo2(h, > mem_ctx, > &user_handle, > UserInternal1Information, > info, > &result); >+ unbecome_root(); > if (!NT_STATUS_IS_OK(status)) { > goto out; > } >-- >1.7.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
asn
:
review+
Actions:
View
Attachments on
bug 8550
: 7042