1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

smbd/password.c: Added *SMBSERVER fix is name is too long.

web/swat.c: Changed '?' to help.
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 10f51b8572
commit 631913ea85
2 changed files with 10 additions and 2 deletions

View File

@ -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))
{

View File

@ -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) {