Hi, I would like to have [backup] service hosted on samba machine, resolving each client to different directory (/srv/backup/prod001, or /srv/bacjup/prod001.domain.com). Is this possible? By reading man to smb.conf I see there is %M variable. I have defined following service ## backup share [backup] path = /srv/backups/machines/%M read only = No public = no writable = yes printable = no Still samba resolve this to /srv/backups/machines/192.168.10.11 Reverse DNS is working fine on machine: node001 ~ # host 192.168.10.11 11.10.168.192.in-addr.arpa domain name pointer dmz001.domain.com. Am I doing something wrong? Best regards Robert Smol
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert Smol wrote:> [backup] > path = /srv/backups/machines/%M > read only = No > public = no > writable = yes > printable = no > > Still samba resolve this to /srv/backups/machines/192.168.10.11 > > Reverse DNS is working fine on machine: > > node001 ~ # host 192.168.10.11 > 11.10.168.192.in-addr.arpa domain name pointer dmz001.domain.com. > > Am I doing something wrong?No. Probably not. But on port 445 we often don't get the machine name until after the NTLM authentication stage or never if using krb5. I'd have to double check some traces to be sure. We've discussed this quite a lot in the past on list. Trying searching the ml archives. cheers, herry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF9XRcIR7qMdg1EfYRAjr6AJ9CSbvyJ3Z4vRxOM85t+FF9ItSVSwCgxgQc kawL2yaHjlf12KltC3Tuvyg=IZ7j -----END PGP SIGNATURE-----
Hi, Gerry's response explain the why. Here is a possible fix, but beware the added load... use hostname lookups = yes in section [global] Charles On 12 mars 07, at 09:44, Robert Smol wrote:> Hi, > > I would like to have [backup] service hosted on samba machine, > resolving > each client to different directory (/srv/backup/prod001, > or /srv/bacjup/prod001.domain.com). Is this possible? By reading > man to > smb.conf I see there is %M variable. > > I have defined following service > > ## backup share > [backup] > path = /srv/backups/machines/%M > read only = No > public = no > writable = yes > printable = no > > > Still samba resolve this to /srv/backups/machines/192.168.10.11 > > Reverse DNS is working fine on machine: > > node001 ~ # host 192.168.10.11 > 11.10.168.192.in-addr.arpa domain name pointer dmz001.domain.com. > > Am I doing something wrong? > > Best regards > > Robert Smol > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba