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:
parent
a6e88785e7
commit
0ef5e4372c
@ -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];
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user