[Samba] Won't %L work anymore?
Buchan Milne
bgmilne at cae.co.za
Thu Dec 5 13:45:01 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Message: 6
> Date: Wed, 04 Dec 2002 16:43:01 -0500
> From: Gary Algier <gaa at ulticom.com>
> To: samba at lists.samba.org
> Subject: Re: [Samba] Won't %L work anymore?
>
> A followup to my own post:
>
> I went ahead and implemented a configuration with %L. It works great.
> One problem: Micro@!#$t broke Win2k with SP3.
>
> My test PC was running Win2k SP2. When it connected to the server it
> seems to have supplied the "netbios name" of my server. I went into
> my boss's office to show him how great this works and his Win2k SP3
> did not show the same shares. They showed the shares that would
> show if the "real" host name is used.
>
> Here's my basic config:
>
> System OS: Solaris 2.6
> Samba: 2.2.7
> Hostname: tea
> IP addresses assigned: 172.25.0.13 (tea) 172.25.0.33 (cup) 172.25.0.34
(mug)
> Partial configs:
> /etc/samba/smb.conf:
> [global]
> interfaces = 127.0.0.1 172.25.0.13 172.25.0.33 172.25.0.34
#You probably want to try adding right here:
netbios name = beverages
netbios aliases = tea cup mug
> include = /etc/samba/smb.conf.host-%L
> /etc/samba/smb.conf.host-tea:> [global]
> workgroup = MTLAUREL
^^^^^^^^^^^^^^^^^^^^
I don't think this will work if you have different workgroups listed
here, I suspect you would have to run seperate smbd's with different
config files if you want to do this.
> netbios name = TEA
Unnecessary, use netbios aliases instead.
> ...
> [some-shares]
> ...
> /etc/samba/smb.conf.host-cup:
> [global]
> workgroup = MTLAUREL
> netbios name = Cup
> [other-shares]
> ...
> /etc/samba/smb.conf.host-mug:
> [global]
> workgroup = MTLAUREL
> netbios name = Cup
> [more-shares]
> ...
>
> So, am I crazy to think of using %L? Should I use another (hidden) %
code?
> Should I hack in %s (for sockname) or %l (for alternate %L) as the result
> of getsockname()? Will this even work? Is this any different in samba 3?
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE971hprJK6UGDSBKcRAoWwAJ9Cs3Nrj0Nt1CRpJ+KXg2F0H8AEQQCeKJKz
O4KUgm7icTFgpol4tVHUqCQ=
=Wu93
-----END PGP SIGNATURE-----
More information about the samba
mailing list