Directory listing in

Steve Langasek vorlon at
Fri Dec 29 20:59:05 GMT 2000

On Fri, 29 Dec 2000, Welsh, Armand wrote:

> IIRC correctly, "." is a valid character for domains, I seem to remember
> working on a domain (workgroup) that was the same as my dns domain.. In
> fact, now that I think about it, I remember working on several domains that
> were like this at client sites.  But what about using this format...

> smb://[workgroup[:scope]/]

So is ':' a legal character in a netbios name?  What is the legal set of
characters for netbios names?

If there are no characters that are legal in URLs and illegal in netbios
names, it may be that we'll end up needing something like this...

	group = nmb_find_group(name,NULL);
	while (!group) {
		scope = strrchr(name, '.');
		if (!scope) break;
		scope++ = '\0';
		group = nmb_find_group(name,scope);

Steve Langasek
postmodern programmer

More information about the samba-technical mailing list