1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-28 03:33:13 +03:00

provision: Increase max NetBIOS name length from 13 to 15.

Issue originally reported by user Julsa-FR on IRC.
This commit is contained in:
Andrew Kroeger
2008-03-27 16:30:18 -05:00
parent f47df57615
commit ee9ad77009
2 changed files with 2 additions and 2 deletions

View File

@@ -1174,7 +1174,7 @@ member: %s
// 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 (strlen(name) > 15) return false;
return true;
}

View File

@@ -225,7 +225,7 @@ def valid_netbios_name(name):
"""Check whether a name is valid as a NetBIOS name. """
# FIXME: There are probably more constraints here.
# crh has a paragraph on this in his book (1.4.1.1)
if len(name) > 13:
if len(name) > 15:
return False
return True