diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-18 09:52:55 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-18 09:52:55 +0000 |
commit | cdc6fc8acb24645ccd0f2862741c9ea9e1c02829 (patch) | |
tree | 95656003f6e226490d9605f69190dad8022e2dab /source3/smbd | |
parent | 50eea935161f0c2b5122d9bea5c95eced0a3c485 (diff) | |
download | samba-cdc6fc8acb24645ccd0f2862741c9ea9e1c02829.tar.gz samba-cdc6fc8acb24645ccd0f2862741c9ea9e1c02829.tar.bz2 samba-cdc6fc8acb24645ccd0f2862741c9ea9e1c02829.zip |
Add an extra parameter to our 'set_remote_machine_name' and
'set_local_machine_name' so that the client can't change it from under us.
(.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP
on the domain join).
Andrew Bartlett
(This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 4 | ||||
-rw-r--r-- | source3/smbd/server.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index ff1c0e5a52..a738baa9ff 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -87,8 +87,8 @@ int reply_special(char *inbuf,char *outbuf) name2[15] = 0; } - set_local_machine_name(name1); - set_remote_machine_name(name2); + set_local_machine_name(name1, True); + set_remote_machine_name(name2, True); DEBUG(2,("netbios connect: local=%s remote=%s\n", get_local_machine_name(), get_remote_machine_name() )); diff --git a/source3/smbd/server.c b/source3/smbd/server.c index f8bfe90ea9..4a79916efe 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -398,7 +398,7 @@ static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_ /* this is needed so that we get decent entries in smbstatus for port 445 connects */ - set_remote_machine_name(get_socket_addr(smbd_server_fd())); + set_remote_machine_name(get_socket_addr(smbd_server_fd()), False); /* Reset global variables in util.c so that client substitutions will be @@ -703,7 +703,7 @@ static BOOL init_structs(void ) load_case_tables(); - set_remote_machine_name("smbd"); + set_remote_machine_name("smbd", False); if (interactive) { Fork = False; |