[Samba] Setting Separate File server from Samba PDC

Vizitiu, Ciprian CVizitiu at gbif.org
Wed Jun 11 15:11:34 GMT 2003


> 
> 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.



More information about the samba mailing list