summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Kroeger <andrew@sprocks.gotdns.com>2008-03-27 16:30:18 -0500
committerAndrew Kroeger <andrew@sprocks.gotdns.com>2008-03-27 16:30:18 -0500
commitee9ad77009ef5e36655a49c41730a4a963ba9d43 (patch)
tree08fd9f33eeb3c6e6e9e77cea95f54ad80a786d22 /source
parentf47df5761571dd5c36789fb2e225a1125ca0e8f7 (diff)
downloadsamba-ee9ad77009ef5e36655a49c41730a4a963ba9d43.tar.gz
samba-ee9ad77009ef5e36655a49c41730a4a963ba9d43.tar.xz
samba-ee9ad77009ef5e36655a49c41730a4a963ba9d43.zip
provision: Increase max NetBIOS name length from 13 to 15.
Issue originally reported by user Julsa-FR on IRC.
Diffstat (limited to 'source')
-rw-r--r--source/scripting/libjs/provision.js2
-rw-r--r--source/scripting/python/samba/__init__.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/scripting/libjs/provision.js b/source/scripting/libjs/provision.js
index 3ba93debf98..86baa0c0038 100644
--- a/source/scripting/libjs/provision.js
+++ b/source/scripting/libjs/provision.js
@@ -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;
}
diff --git a/source/scripting/python/samba/__init__.py b/source/scripting/python/samba/__init__.py
index e91b320c073..b9d81c6c3c4 100644
--- a/source/scripting/python/samba/__init__.py
+++ b/source/scripting/python/samba/__init__.py
@@ -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