[Samba] samba multiple instances and winbind

2004-08-31 Thread Nir L
Hi all,
I have a RedHat linux machine running multiple instances of samba, each
binded to a different interface.
each is joined to my win2k domain using a different netbios name.

I want to start using winbind, and already done some research and tests
configuring samba to cooperate with winbind.

My question is:
Do I also need multiple instances of winbind (one for each smbd instance),
or do I use only one instance of winbind ?
should it have its own smb.conf ? its own netbios name ?

Thanks,
Nir

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba multiple instances

2004-08-28 Thread devzero
Hi,

regarding my problem with nmbd i took a look into the code (nmbd.c) and found:

static BOOL open_sockets(BOOL isdaemon, int port)
{
/*
* The sockets opened here will be used to receive broadcast
* packets *only*. Interface specific sockets are opened in
* make_subnet() in namedbsubnet.c. Thus we bind to the
* address 0.0.0.0. The parameter 'socket address' is
* now deprecated.
*/


mhhh - if the socket address parameter is deprecated - why is it still mentioned in 
the documentation section of smb.conf on the website ?
ok - documentation is always behind - maybe it needs an update ?

i still wonder:   why should nmbd need to bind to 0.0.0.0 to receive broadcast packets 
?

i have a network 192.168.0.0/24 and so i want nmbd bind to interface 192.168.0.100 - 
and that would be quite sufficient to receive broadcasts from 192.168.0.100 - wouldn`t 
it ?

any hints ?

TIA
roland


check out the following smb.conf parameters

private dir
lock directory
pid directory


[EMAIL PROTECTED] wrote:
 Hi !
 I want to run 2 samba instances on my linux server.
 the server has 2 ip adresses and i made 2 different smb.conf`s (2 different \
 netbios-names/workgroups bound to specific interfaces - params interfaces , bind 
 \
 interfaces only and socket address) furthermore i cloned the start/stopscripts \
 (cp smb/nmb  to smb2/nmb2) to use that different smb.conf`s. 
 but that doesnt work perfect - i can connect to the different ip`s and have 2 \
 smbd`s serving files - but i wonder about the following:
 
 - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 \
 use /var/lib/samba2 for their TDB backend files. also nmbd writes a browse.dat - so 
 \
 - we have concurrent access on that file if 2 nmbd`s are running, right? hardcoded \
 paths ? 
 - i have no clue why nmbd binds to IP #1 or #2  AND to 0.0.0.0:138 THOUGH i \
 configured bind interfaces only (bug?). that must be the reason why browsing \
 doesn`t work when 2 instances are up and running. 
 can someone help me with this ?
 
 i`m sure that multi-instance of samba should work in general - but there seem to be 
 \
 some bells and whistles. 
 regards
 roland
 
 
 

Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba multiple instances

2004-08-27 Thread Paul Gienger

- i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 use /var/lib/samba2 for their TDB backend files.
 

For what you're doing, which is pretty advanced, how bout if you 
./configure your instances to run from their own seperate directory 
trees?  Ex. /usr/local/samba-servername and 
/usr/local/samba-otherservername That would make the most sense to me, 
but maybe I'm just crazy.  Some of the other issues may go away if there 
are other file overlaps you're not considering.

--
Paul Gienger Office: 701-281-1884
Applied Engineering Inc. 
Information Systems Consultant   Fax:701-281-1322
URL: www.ae-solutions.commailto: [EMAIL PROTECTED]

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba multiple instances

2004-08-27 Thread devzero
you mean i should compile it myself and choose that dir at configure time?
ok - that make sense and i thought of that already - but - why shouldn`t that be 
configurable with a binary package?
i don`t like software with hardcoded paths in general :)

roland


- Original Message - 
From: Paul Gienger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 5:25 PM
Subject: Re: [Samba] samba multiple instances



 - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 
 use /var/lib/samba2 for their TDB backend
files.
 
 
 For what you're doing, which is pretty advanced, how bout if you
 ./configure your instances to run from their own seperate directory
 trees?  Ex. /usr/local/samba-servername and
 /usr/local/samba-otherservername That would make the most sense to me,
 but maybe I'm just crazy.  Some of the other issues may go away if there
 are other file overlaps you're not considering.

 -- 
 Paul Gienger Office: 701-281-1884
 Applied Engineering Inc.
 Information Systems Consultant   Fax:701-281-1322
 URL: www.ae-solutions.commailto: [EMAIL PROTECTED]



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba multiple instances

2004-08-27 Thread Herb Lewis
check out the following smb.conf parameters
private dir
lock directory
pid directory
[EMAIL PROTECTED] wrote:
Hi !
I want to run 2 samba instances on my linux server.
the server has 2 ip adresses and i made 2 different smb.conf`s (2 different 
netbios-names/workgroups bound to specific interfaces -
params interfaces , bind interfaces only and socket address)
furthermore i cloned the start/stopscripts (cp smb/nmb  to smb2/nmb2) to use that 
different smb.conf`s.
but that doesnt work perfect - i can connect to the different ip`s and have 2 smbd`s 
serving files - but i wonder about the
following:
- i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 use 
/var/lib/samba2 for their TDB backend files.
also nmbd writes a browse.dat - so - we have concurrent access on that file if 2 
nmbd`s are running, right?
hardcoded paths ?
- i have no clue why nmbd binds to IP #1 or #2  AND to 0.0.0.0:138 THOUGH i configured 
bind interfaces only (bug?). that must be the
reason why browsing doesn`t work when 2 instances are up and running.
can someone help me with this ?
i`m sure that multi-instance of samba should work in general - but there seem to be 
some bells and whistles.
regards
roland

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba multiple instances

2004-08-27 Thread devzero
Ahhh - thanks!
I found the lock dir and pid dir param but must have missed the private dir param when 
searching the smb.conf manpage.
maybe i had an outdated manpage?

i give it a try.

it`s strange that google gives me only 365 hits when searching for private dir 
smb.conf (there are thousands of smb.conf
documents out there on the net!  is that a brand new param ?

so - only one issue left :

  - i have no clue why nmbd binds to IP #1 or #2  AND to 0.0.0.0:138 THOUGH i 
  configured bind interfaces only (bug?). that must be
the
  reason why browsing doesn`t work when 2 instances are up and running.

:)

regards
roland


- Original Message - 
From: Herb Lewis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 27, 2004 6:08 PM
Subject: Re: [Samba] samba multiple instances


 check out the following smb.conf parameters

 private dir
 lock directory
 pid directory


 [EMAIL PROTECTED] wrote:
  Hi !
  I want to run 2 samba instances on my linux server.
  the server has 2 ip adresses and i made 2 different smb.conf`s (2 different 
  netbios-names/workgroups bound to specific
interfaces -
  params interfaces , bind interfaces only and socket address)
  furthermore i cloned the start/stopscripts (cp smb/nmb  to smb2/nmb2) to use that 
  different smb.conf`s.
 
  but that doesnt work perfect - i can connect to the different ip`s and have 2 
  smbd`s serving files - but i wonder about the
  following:
 
  - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 
  use /var/lib/samba2 for their TDB backend
files.
  also nmbd writes a browse.dat - so - we have concurrent access on that file if 2 
  nmbd`s are running, right?
  hardcoded paths ?
 
  - i have no clue why nmbd binds to IP #1 or #2  AND to 0.0.0.0:138 THOUGH i 
  configured bind interfaces only (bug?). that must be
the
  reason why browsing doesn`t work when 2 instances are up and running.
 
  can someone help me with this ?
 
  i`m sure that multi-instance of samba should work in general - but there seem to 
  be some bells and whistles.
 
  regards
  roland
 
 
 


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba