mirror of
https://github.com/samba-team/samba.git
synced 2025-11-05 04:23:51 +03:00
r12695: A dot is allowed in NetBIOS names.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
c722f665c9
commit
f4ac7d6359
@@ -481,11 +481,11 @@ member: %s
|
||||
}
|
||||
|
||||
// Check whether a name is valid as a NetBIOS name.
|
||||
// FIXME: There are probably more constraints here
|
||||
// FIXME: There are probably more constraints here.
|
||||
// crh has a paragraph on this in his book (1.4.1.1)
|
||||
function valid_netbios_name(name)
|
||||
{
|
||||
if (strlen(name) > 13) return false;
|
||||
if (strstr(name, ".")) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user