I'm aim to set up a file server that is separate from my SAMBA PDC. I've had no problem setting file server up, and joining it to he domain using smbpasswd. Can I use winbind with a SAMBA PDC or is it meant only for Windows NT servers. When creating shares on this file server, I need to allow permissions to various groups and or users. How can I do this. Do I need to set up NIS? Thank You in advance Roberto
Vizitiu, Ciprian
2003-Jun-11 15:11 UTC
[Samba] Setting Separate File server from Samba PDC
> > I'm aim to set up a file server that is separate from my > SAMBA PDC. I've had no problem setting file server up, and > joining it to he domain using smbpasswd. > > Can I use winbind with a SAMBA PDC or is it meant only for > Windows NT servers. >Not so long ago I posted the same question and someone sent me this patch. I was on RH 8.0 with 2.2.7 so I needed it. --- nmbd/nmbd_logonnames.c 30 Jan 2002 06:08:22 -0000 1.11 +++ nmbd/nmbd_logonnames.c 6 Oct 2002 09:58:09 -0000 @@ -139,6 +139,7 @@ void add_logon_names(void) { struct subnet_record *subrec; + struct nmb_name nmbname; for (subrec FIRST_SUBNET; subrec; subrec NEXT_SUBNET_INCLUDING_UNICAST(subrec)) { @@ -146,7 +147,6 @@ if (work && (work->log_state LOGON_NONE)) { - struct nmb_name nmbname; make_nmb_name(&nmbname,global_myworkgroup,0x1c); if (find_name_on_subnet(subrec, &nmbname, FIND_SELF_NAME) NULL) @@ -162,4 +162,6 @@ } } } + make_nmb_name(&nmbname,global_myworkgroup,0x1c); + insert_permanent_name_into_unicast(FIRST_SUBNET, &nmbname, 0x1c); } After this wbinfo started to work with SAMBA PDC. It was 2.2.7 from RH8... Well the patch worked with some small quirks but it can be done. Unfortunately I don't have the original mail so I can't tell you who he was ;-). I remember him telling me that in 2.2.8 things should be fixed so maybe the listers can tell you more about this.
Vizitiu, Ciprian
2003-Jun-11 15:35 UTC
[Samba] Setting Separate File server from Samba PDC
If I were you I'd get the sources and see if the patch is in there. I haven't tested the latest samba from RH, right now I run 2.2.8 from samba.org. I hope you know that if you're desperate you can to that too on RH, samba from samba.org can be made .rpm! That is the tgz from the site has a .spec in it. It's just that you get only a samba.rpm and not all the sepparate components that RedHat does. I guess that's what --nodeps and --forced were given for as rpm options... :-s> > Then that explains it, I'm running version 2.27a-8.9.0 from > Redhat 9.0. I'm going to download and install the latest Samba. > > Thanks Again > Roberto > > On Wed, 2003-06-11 at 11:11, Vizitiu, Ciprian wrote: > > > > > > I'm aim to set up a file server that is separate from my > > > SAMBA PDC. I've had no problem setting file server up, and > > > joining it to he domain using smbpasswd. > > > > > > Can I use winbind with a SAMBA PDC or is it meant only for > > > Windows NT servers. > > > > > > > > > Not so long ago I posted the same question and someone sent me this > > patch. I was on RH 8.0 with 2.2.7 so I needed it. > > > > --- nmbd/nmbd_logonnames.c 30 Jan 2002 06:08:22 -0000 1.11 > > +++ nmbd/nmbd_logonnames.c 6 Oct 2002 09:58:09 -0000 > > @@ -139,6 +139,7 @@ > > void add_logon_names(void) > > { > > struct subnet_record *subrec; > > + struct nmb_name nmbname; > > for (subrec FIRST_SUBNET; subrec; subrec > > NEXT_SUBNET_INCLUDING_UNICAST(subrec)) > > { > > @@ -146,7 +147,6 @@ > > if (work && (work->log_state LOGON_NONE)) > > { > > - struct nmb_name nmbname; > > make_nmb_name(&nmbname,global_myworkgroup,0x1c); > > if (find_name_on_subnet(subrec, &nmbname, > FIND_SELF_NAME) NULL) > > @@ -162,4 +162,6 @@ > > } > > } > > } > > + make_nmb_name(&nmbname,global_myworkgroup,0x1c); > > + insert_permanent_name_into_unicast(FIRST_SUBNET, &nmbname, 0x1c); > > }