Does anyone know if there is a way to setup a Samba server to respond to 2 different names on the same or different IP addresses? I currently have two servers with two different names. I would like to decommission the first server while still allowing users to access the second server with the same name they were using to access the first server. Thank You, Jason Williard E-MAIL CONFIDENTIALITY NOTICE: The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.
Williard, Jason wrote:> Does anyone know if there is a way to setup a Samba server to respond to > 2 different names on the same or different IP addresses? I currently > have two servers with two different names. I would like to decommission > the first server while still allowing users to access the second server > with the same name they were using to access the first server. > >Assuming you are dealing with fully Active-Directory integrated servers, then the most effective solution would be to assign two IP addresses to the same box, and run two separate instances of Samba - each with a different config. i.e. one instance of winbind (I'm assuming both servers are part of the same AD realm) smbd -D -s /etc/samba/smb-1.conf nmbd -D -s /etc/samba/smb-1.conf smbd -D -s /etc/samba/smb-2.conf nmbd -D -s /etc/samba/smb-2.conf smb-1.conf and smb-2.conf define the different hostnames, shares and sets "bind interfaces only = Yes" and uses the "interfaces = eth:?" option to tell each instance what IP address/interface it needs to exclusively bind to. I just went through the same exercise - and the above works well for us. Kerberos really wants to stop you assigning multiple names to the same token (at least I had huge trouble getting it to work correctly), so mapping everything to separate IPs is the cleanest IMHO. -- Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +64 3 9635 377 Fax: +64 3 9635 417 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
On Thu, Jan 18, 2007 at 02:42:59PM -0600, Williard, Jason wrote:> Does anyone know if there is a way to setup a Samba server to respond to > 2 different names on the same or different IP addresses? I currently > have two servers with two different names. I would like to decommission > the first server while still allowing users to access the second server > with the same name they were using to access the first server.Just add 'netbios aliases = <second-name>' to your smb.conf. Or put an appropriate cname into your dns, depending on how your clients resolve their names. If you want different shares on each server, you might want to add smb ports = 139 include = /etc/samba/smb.conf.%L to your smb.conf. You would add the shares for serverone to the file /etc/samba/smb.conf.serverone and for servertwo likewise to /etc/samba/smb.conf.servertwo. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20070118/19ba7bc6/attachment.bin
Apparently Analagous Threads
- Cannot connect to Samba-3.0.23d (and earlier) from other trusted AD domains
- FreeBSD, Samba 3.0.28a joined to AD domain but prompts for login
- performance lower then expected
- Can Asterisk "proxy" a SIP phone to make it look like a Cisco skinny softphone?
- Win2K3 DNS losing Samba DNS entries?