%U and %u functionality change in 2.2??
Gerald Carter
gcarter at valinux.com
Wed Apr 25 16:47:30 GMT 2001
On 25 Apr 2001, Matthew Keller wrote:
> 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").
%U should be what the client sent in the SMBsessetup&X. WIn9x sends this
in all caps. The %u is what the client actually got. Normally this is
the same name in lower case determined by Get_Pwnam()
> > 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
ok. Thanks. I'll look at this.
CHeers, jerry
----------------------------------------------------------------------
/\ Gerald (Jerry) Carter Professional Services
\/ http://www.valinux.com/ VA Linux Systems gcarter at valinux.com
http://www.samba.org/ SAMBA Team jerry at samba.org
http://www.plainjoe.org/ jerry at plainjoe.org
"...a hundred billion castaways looking for a home."
- Sting "Message in a Bottle" ( 1979 )
More information about the samba
mailing list