Bug 2354 - Use of %U in includes fails after a /
Summary: Use of %U in includes fails after a /
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.11
Hardware: Sparc Solaris
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 07:42 UTC by Gary Algier
Modified: 2009-04-04 08:02 UTC (History)
0 users

See Also:


Attachments
This is a level 10 log from when it fails (include = someplace/%U) (980.64 KB, text/plain)
2005-02-17 10:25 UTC, Gary Algier
no flags Details
This is a level 10 log from when it works (include = someplace/user-%U) (999.35 KB, text/plain)
2005-02-17 10:30 UTC, Gary Algier
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Algier 2005-02-17 07:42:26 UTC
I have include statements like:
   include = /etc/samba/user-config/%U

These fail.  When I browse to the server, all the shares show,
but if I browse into a share that was defined in this include,
I get an error on the client that the share does not exist.  If
I browse into a share defined before the include statement it
works, but when I come back to the top, the other shares
have disappeared.

I have determined that if I use statements like:
   include = /etc/samba/user-config/foobar-%U
that it will work.  However, for my needs the files must
match the user's login.
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-02-17 08:09:57 UTC
This is *so* strange.  Would you attach a level 10 debug log 
of the failure to this bug report?
Comment 2 Gary Algier 2005-02-17 10:25:49 UTC
Created attachment 970 [details]
This is a level 10 log from when it fails (include = someplace/%U)

This is a level 10 log produced when I use an include statement of:
    include = /etc/ulcmit/samba/carp/auto-config/%U
This fails as reported in the bug report.
(Yes the file exists).
Comment 3 Gary Algier 2005-02-17 10:30:58 UTC
Created attachment 971 [details]
This is a level 10 log from when it works (include = someplace/user-%U)

This is a level 10 log from when it works.  I used an include like:
    include = /etc/ulcmit/samba/carp/auto-config/user-%U
(Yes this is identical to the file included when it fails)
Comment 4 Gary Algier 2005-02-17 10:32:41 UTC
Comment on attachment 971 [details]
This is a level 10 log from when it works (include = someplace/user-%U)

This is a level 10 log of when I use an include like:
    include = include = /etc/ulcmit/samba/carp/auto-config/user-%U