[Samba] %U in include

Ludek Finstrle ludek.finstrle at pzkagis.cz
Sat Nov 23 12:38:01 GMT 2002


> >   I had problem with %U in include tag in configuration file smb.conf.
> > I try explain the problem. When I connecting from Windows (domain)
> > the samba server doesn't properly include file.
> > E.g.: smb.conf
> >   include = smb.conf.%U
> > It include only smb.conf. at first time.
> > 
> > I find no information about it so I try write patch for it. Please
> > could you say me, if it's wrong? I have no problem with it for
> > few days.
> > I write it again 3.0 CVS branch. I see the problem in 2.2 too.
> > 
> > Please send reply with cc: luf at pzkagis.cz as I'm not list member.
> 
> This was fixed in 2.2.7 (and also in the HEAD/SAMBA_3_0 branches)
> a few days ago.  Is it still not working for you?

Now I see what you point me:

| RCS file: /cvsroot/samba/source/smbd/service.c,v
| retrieving revision 1.85.2.4
| retrieving revision 1.85.2.5
| diff -u -r1.85.2.4 -r1.85.2.5
| --- samba/source/smbd/service.c 2002/11/12 23:20:49     1.85.2.4
| +++ samba/source/smbd/service.c 2002/11/18 06:12:47     1.85.2.5
| @@ -611,6 +611,9 @@
|                 *status = NT_STATUS_LOGON_FAILURE;
|                 return NULL;
|         }
| +
| +       /* the %U substitution may have changed */
| +       reload_services(True);
| 
|         /* Remember that a different vuid can connect later without these checks

But if I follow CVS instruction to download
(from http://samba.kn.vutbr.cz/samba/cvs.html - czech mirror), I can't get
service.c with this patch.

CVS command:
cvs -z5 -d :pserver:cvs at pserver.samba.org:/cvsroot co -r SAMBA_3_0 samba

What I do wrong?

I'll try it with this patch on Monday as I'm not at work now.

Thanks a lot

Luf



More information about the samba mailing list