diff options
author | Andrew Kroeger <andrew@sprocks.gotdns.com> | 2008-03-27 16:30:18 -0500 |
---|---|---|
committer | Andrew Kroeger <andrew@sprocks.gotdns.com> | 2008-03-27 16:30:18 -0500 |
commit | b2c6ba69a453aaa7cbabb7be7b8c2a05b48a76c4 (patch) | |
tree | da9ce278708f599761a2d9e794e4d9bcdb677bc3 /source4 | |
parent | e15b35e3897e63b9e815a04101436439d4aebdef (diff) | |
download | samba-b2c6ba69a453aaa7cbabb7be7b8c2a05b48a76c4.tar.gz samba-b2c6ba69a453aaa7cbabb7be7b8c2a05b48a76c4.tar.bz2 samba-b2c6ba69a453aaa7cbabb7be7b8c2a05b48a76c4.zip |
provision: Increase max NetBIOS name length from 13 to 15.
Issue originally reported by user Julsa-FR on IRC.
(This used to be commit ee9ad77009ef5e36655a49c41730a4a963ba9d43)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/libjs/provision.js | 2 | ||||
-rw-r--r-- | source4/scripting/python/samba/__init__.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js index 3ba93debf9..86baa0c003 100644 --- a/source4/scripting/libjs/provision.js +++ b/source4/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/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py index e91b320c07..b9d81c6c3c 100644 --- a/source4/scripting/python/samba/__init__.py +++ b/source4/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 |