summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/password.c10
-rw-r--r--source3/web/swat.c2
2 files changed, 10 insertions, 2 deletions
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))
{
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 7004891f32..8c5ac782a3 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -163,7 +163,7 @@ static void show_parameter(int snum, struct parm_struct *parm)
ptr = lp_local_ptr(snum, ptr);
}
- printf("<tr><td><A HREF=\"/swat/help/smb.conf.5.html#%s\">?</A> %s</td><td>",
+ printf("<tr><td><A HREF=\"/swat/help/smb.conf.5.html#%s\">Help</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %s</td><td>",
stripspace(parm->label), parm->label);
switch (parm->type) {