From a97baa50fdbf951cf3568b7068a7194f22642d52 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 21 Nov 1998 00:16:28 +0000 Subject: smbd/password.c: Added *SMBSERVER fix is name is too long. web/swat.c: Changed '?' to help. Jeremy. (This used to be commit 631913ea856926a77304692c74a1bd27faead179) --- source3/smbd/password.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source3/smbd/password.c') diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 9011b9b95e..683303ff87 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -1000,7 +1000,15 @@ struct cli_state *server_cryptkey(void) } make_nmb_name(&calling, local_machine, 0x0 , scope); - make_nmb_name(&called , desthost , 0x20, scope); + + if(strlen(desthost) > 15) + { + DEBUG(1,("server_cryptkey: %s is too long for a password server NetBIOS \ +name, using *SMBSERVER for the connection.\n", desthost )); + make_nmb_name(&called , "*SMBSERVER", 0x20, scope); + } + else + make_nmb_name(&called , desthost , 0x20, scope); if (!cli_session_request(cli, &calling, &called)) { -- cgit