1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00

r26139: Based on a report by Theodor Chirana, don't assert() on invalid

netbios names at this point, the calling order has changed, and we
have a more informative place to do it.

Andrew Bartlett
(This used to be commit 3136dccd54)
This commit is contained in:
Andrew Bartlett
2007-11-27 02:49:37 +01:00
committed by Stefan Metzmacher
parent 93e3a47206
commit c4d7646f29

View File

@ -464,9 +464,7 @@ function provision_fix_subobj(subobj, paths)
subobj.REALM = strupper(subobj.REALM);
subobj.HOSTNAME = strlower(subobj.HOSTNAME);
subobj.DOMAIN = strupper(subobj.DOMAIN);
assert(valid_netbios_name(subobj.DOMAIN));
subobj.NETBIOSNAME = strupper(subobj.HOSTNAME);
assert(valid_netbios_name(subobj.NETBIOSNAME));
subobj.DNSDOMAIN = strlower(subobj.REALM);
subobj.DNSNAME = sprintf("%s.%s",
strlower(subobj.HOSTNAME),