The Samba-Bugzilla – Attachment 132 Details for
Bug 273
smbd crashes on changing machine trust password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for m/c account password change crash.
look (text/plain), 1.85 KB, created by
Jeremy Allison
on 2003-09-10 11:32:07 UTC
(
hide
)
Description:
Proposed patch for m/c account password change crash.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2003-09-10 11:32:07 UTC
Size:
1.85 KB
patch
obsolete
>? client_oplocks.txt >Index: smbd/change_trust_pw.c >=================================================================== >RCS file: /data/cvs/samba/source/smbd/change_trust_pw.c,v >retrieving revision 1.2.2.11 >diff -u -r1.2.2.11 change_trust_pw.c >--- smbd/change_trust_pw.c 26 Aug 2003 03:13:39 -0000 1.2.2.11 >+++ smbd/change_trust_pw.c 10 Sep 2003 18:30:30 -0000 >@@ -48,22 +48,20 @@ > > if ( !name_status_find( domain, 0x1b, 0x20, pdc_ip, dc_name) ) > goto failed; >- } >- /* supoport old deprecated "smbpasswd -j DOMAIN -r MACHINE" behavior */ >- else { >+ } else { >+ /* supoport old deprecated "smbpasswd -j DOMAIN -r MACHINE" behavior */ > fstrcpy( dc_name, remote_machine ); > } > > /* if this next call fails, then give up. We can't do > password changes on BDC's --jerry */ > >- if (!NT_STATUS_IS_OK(cli_full_connection(&cli, global_myname(), remote_machine, >+ if (!NT_STATUS_IS_OK(cli_full_connection(&cli, global_myname(), dc_name, > NULL, 0, > "IPC$", "IPC", > "", "", >- "", 0, Undefined, NULL))) >- { >- DEBUG(0,("modify_trust_password: Connection to %s failed!\n", remote_machine)); >+ "", 0, Undefined, NULL))) { >+ DEBUG(0,("modify_trust_password: Connection to %s failed!\n", dc_name)); > nt_status = NT_STATUS_UNSUCCESSFUL; > goto failed; > } >@@ -75,7 +73,7 @@ > > if(cli_nt_session_open(cli, PI_NETLOGON) == False) { > DEBUG(0,("modify_trust_password: unable to open the domain client session to machine %s. Error was : %s.\n", >- remote_machine, cli_errstr(cli))); >+ dc_name, cli_errstr(cli))); > cli_nt_session_close(cli); > cli_ulogoff(cli); > cli_shutdown(cli); >@@ -83,8 +81,7 @@ > goto failed; > } > >- nt_status = trust_pw_find_change_and_store_it(cli, cli->mem_ctx, >- domain); >+ nt_status = trust_pw_find_change_and_store_it(cli, cli->mem_ctx, domain); > > cli_nt_session_close(cli); > cli_ulogoff(cli);
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
Actions:
View
Attachments on
bug 273
:
122
|
125
| 132