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

r15137: Refuse to join if our netbios name is longer than 15 chars. I think this is

sufficient to fix bug #3659.

Volker
This commit is contained in:
Volker Lendecke 2006-04-19 15:43:48 +00:00 committed by Gerald (Jerry) Carter
parent a6e88785e7
commit 0ef5e4372c
2 changed files with 13 additions and 0 deletions

View File

@ -727,6 +727,12 @@ int net_ads_join(int argc, const char **argv)
return -1;
}
if (strlen(global_myname()) > 15) {
d_printf("Our netbios name can only be 15 chars long, \"%s\""
" is %d chars long\n",
global_myname(), strlen(global_myname()));
return -1;
}
if (argc > 0) {
org_unit = argv[0];

View File

@ -395,6 +395,13 @@ int net_rpc_join(int argc, const char **argv)
return -1;
}
if (strlen(global_myname()) > 15) {
d_printf("Our netbios name can only be 15 chars long, \"%s\""
" is %d chars long\n",
global_myname(), strlen(global_myname()));
return -1;
}
if ((net_rpc_perform_oldjoin(argc, argv) == 0))
return 0;