On 25 Apr 2001, Matthew Keller wrote:> > I've been using %U macros within "include" statements in Samba 2.0 for > years now. 2.2 doesn't seem to like them anyore. Has this > functionality changed? I checked the smb.conf man page, but it doesn't > seem to say anything different. I'm really hurting without this > functionality (including different conf files depending on user name). > Any help would be most appreciated.Is it not being expanded? Can you give me the details surrounding the problem and send me a level 10 debug log when it fails? Have you tried %u? Cheers, jerry ---------------------------------------------------------------------- /\ Gerald (Jerry) Carter Professional Services \/ http://www.valinux.com/ VA Linux Systems gcarter@valinux.com http://www.samba.org/ SAMBA Team jerry@samba.org http://www.plainjoe.org/ jerry@plainjoe.org "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )
On 25 Apr 2001 09:16:07 -0700, Gerald Carter wrote:> Is it not being expanded?It seems to be interpretted literally within the include line. Within the "path" line, %U is returning the username in all caps, and %u is returning the username in lowercase (or, perhaps "properly").> Can you give me the details surrounding the > problem and send me a level 10 debug log when it fails?Attached (.gz'd cuz of the size). Relevant examples are as below. In 2.0, both of these worked as expected with %U - I had to change the path line to %u because it was looking for the file with all caps (eg. "/home/remote/www/users/TESTUSER" instead of "/testuser"). The include line bombs regardless. [WebFolder] writable = yes comment = Your Web Server Space path = /home/remote/www/users/%u include = /usr/local/samba/lib/users/%U.conf -- Matthew Keller Enterprise System Analyst Computing & Technology Services Information Services Division State University of NY at Potsdam Potsdam, NY USA http://mattwork.potsdam.edu/ -------------- next part -------------- A non-text attachment was scrubbed... Name: log.gz Type: application/x-gzip Size: 16046 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20010425/ce9a8435/log.bin
On Wed, Apr 25, 2001 at 09:16:07AM -0700, Gerald Carter wrote:> On 25 Apr 2001, Matthew Keller wrote: > > > > > I've been using %U macros within "include" statements in Samba 2.0 for > > years now. 2.2 doesn't seem to like them anyore. Has this > > functionality changed? I checked the smb.conf man page, but it doesn't > > seem to say anything different. I'm really hurting without this > > functionality (including different conf files depending on user name). > > Any help would be most appreciated. > > Is it not being expanded? Can you give me the details surrounding the > problem and send me a level 10 debug log when it fails? Have you tried > %u?A "me too". There definitely appears to be a problem with "%u" expansion. Under 2.0 series, I set the log files as: log file = /var/adm/samba/%u@%m-%M-%a.log The was cool as I'd get nice logfiles like "jhaar@ntwks-i.p.addr.ess-Samba.log" Now that produces: "%u@ntwks-i.p.addr.ess-Samba.log" This also affects "%U". This is 2.2.0 under Redhat 6.2 -- Cheers Jason Haar Unix/Special Projects, Trimble NZ Phone: +64 3 9635 377 Fax: +64 3 9635 417
On Thu, 26 Apr 2001, Jason Haar wrote:> A "me too". There definitely appears to be a problem with "%u" expansion. >Yeah. Jeremy found it and posted a patch for 2.2.0. Check the list archives. Will be fixed in 2.2.1. Sorry. Cheers, jerry SAMBA Team
Gerald Carter wrote:> > On 25 Apr 2001, Matthew Keller wrote: > > > > > I've been using %U macros within "include" statements in Samba 2.0 for > > years now. 2.2 doesn't seem to like them anyore. Has this > > functionality changed? I checked the smb.conf man page, but it doesn't > > seem to say anything different. I'm really hurting without this > > functionality (including different conf files depending on user name). > > Any help would be most appreciated. > > Is it not being expanded? Can you give me the details surrounding the > problem and send me a level 10 debug log when it fails? Have you tried > %u?Errr, known bug tridge shouted at me over. I've fixed it in 2.2 and HEAD CVS. Jeremy. -- -------------------------------------------------------- Buying an operating system without source is like buying a self-assembly Space Shuttle with no instructions. --------------------------------------------------------