Bluehost.com Web Hosting $6.95

Re: [Samba] Username case mangling -- Linux username is mixed-case,

This is a discussion on Re: [Samba] Username case mangling -- Linux username is mixed-case, within the Samba forums, part of the Networking and Network Related category; --- Jeremy Allison <jra@samba.org> wrote: > On Tue, Apr 08, 2008 at 09:56:45AM -0700, Steve ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008
Steve Briggs
 
Posts: n/a
Default Re: [Samba] Username case mangling -- Linux username is mixed-case,


--- Jeremy Allison <jra@samba.org> wrote:

> On Tue, Apr 08, 2008 at 09:56:45AM -0700, Steve Briggs wrote:
> > I have a problem that I first observed when I upgraded from
> > 3.0.24 to 3.0.28 and is, I believe, related to the introduction
> > of the "printjob username" configuration parameter.
> >
> > I print via CUPS and the Cups-PDF driver wants to know the
> > Linux username (so it can put the PDF in the proper location).
> >
> > The problem is that "printjob username = %U" results in
> > a lowercase username ("steve"), even though the Linux account
> > is "Steve". The Samba logs clearly show me authenticating
> > as "Steve" and the last message I see (with logging at 20)
> > with an obvious user name shows me connecting to the
> > Cups-PDF printer share with username "Steve". But, the
> > Cups logs show a username of "steve" -- which ends up mapped
> > to anonymous.

>
> I think you want to use '%u', not '%U'. From the man page :
>
> %U
> session username (the username that the client wanted, not necessarily the same as
> the one
> they got).
>
> this is the incoming Windows username. %u is :
>
> %u
> username of the current service, if any.
>
> which is a UNIX username.
>
> Jeremy.
>

Well, as I tried to explain in my original posting,
I tried "%u", but (at least for the printjob username
parameter) "%u" didn't get mapped to *anything*
.... it just went through as "%u". I noted in
the documentation that not every substitution
necessarily works in all cases; this seems like
a case where only(?) "%U" gets mapped.

I can try "%u" again, I assumed it should work
and was surprised when it didn't....

Thanks for the suggestion...

Steve



__________________________________________________ __________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0