Hi I am trying to find a way to run 2 samba PDC servers on the same computer. One samba server is the one in production and the other will be used for testing. So far I have not found a way to do this, is it possible at all? I only have one network card. Jocke
You cannot have two PDC on the same MS NT Domain, hence the acronym Primary Domain Controller. In fact, I believe the samba server must be a PDC (a limitation.) You could set up a testing domain and have your testing samba server as the pdc. The major bookstores finally have great selections of books now. Please correct anything I have said that may be incorrect. patrick ----- Original Message ----- From: "Joakim Tjernlund" <joakim.tjernlund@lumentis.se> To: <samba-ntdom@us5.samba.org>; <samba@us5.samba.org> Sent: Tuesday, March 13, 2001 8:30 AM Subject: 2 samba server in same computer?> Hi > > I am trying to find a way to run 2 samba PDC servers on the same computer. > One samba server is the one in production and the other will be used for > testing. > > So far I have not found a way to do this, is it possible at all? > I only have one network card. > > Jocke > >
On 13-Mar-2001 Joakim Tjernlund wrote:> I am trying to find a way to run 2 samba PDC servers on the same computer. > One samba server is the one in production and the other will be used for > testing. > > So far I have not found a way to do this, is it possible at all? > I only have one network card.The way to do this is to assign a second address to your NIC, and bind each instance of Samba to its own address. On Solaris: # ifconfig hme0 addif 192.168.2.20 Created new logical interface hme0:1 # In you smb.conf file, set interfaces = 192.168.2.20/24 bind interfaces only = True for the second instance, and (assuming hme0's address is 192.168.1.20) interfaces = 192.168.1.20/24 bind interfaces only = True for the first instance of Samba. Without a second address, you can't run more than one instance of Samba; it uses specific ports (137-139), and IP address+port+ protocol (TCP/UDP) needs to be unique... Stefaan -- How's it supposed to get the respect of management if you've got just one guy working on the project? It's much more impressive to have a battery of programmers slaving away. -- Jeffrey Hobbs (comp.lang.tcl)
Yes, place a second nic or make an alias (if you os permit it). Then specify "interface = <your ip>" and "bind interface only" as parameters of your smb.conf files and start the two set of daemons. Be sure the every daemon use it' s own file, maybe compiling the two trees with different installation paths is the best thing to ensure they not mix badly. On Tue, 13 Mar 2001, Joakim Tjernlund wrote:> Hi > > I am trying to find a way to run 2 samba PDC servers on the same computer. > One samba server is the one in production and the other will be used for > testing. > > So far I have not found a way to do this, is it possible at all? > I only have one network card. > > Jocke > > >-- Simo Sorce - Linux Systems Consultant E-mail: simo.sorce@polimi.it Tel: +39 0348 7149179 - Fax: +39 02 700442399 ----------------------------------------------------------------- Be happy, use Linux!