Bug 5916 - Config file Variable %U not functioning properly
Summary: Config file Variable %U not functioning properly
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.26a
Hardware: x86 Linux
: P3 minor
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-24 03:23 UTC by Knight
Modified: 2008-11-25 17:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knight 2008-11-24 03:23:51 UTC
I haven't had time to research and find out if this has already been reported, so hopefully I don't make myself look like an idiot.

In the main Samba config file using the following code:

include = /etc/samba/%U

with a file existing correctly will cause Samba to not recognize the additional included file.  Initially it looks like it worked, however when you attempt to go into those shares contained within the /etc/samba/jane file Windows comes back with inaccessible, then log file says "couldn't find service *".  However, if you place a ".conf" at the end of the line (or anything else) like so:

include = /etc/samba/%U.conf

it will function as expected.  This took me months to figure out why it wasn't working properly. :(

Knightofoldcode.
Comment 1 Jeremy Allison 2008-11-25 17:38:48 UTC
Tested and this works in latest 3.2.x codebase.
Jeremy.