All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oskar Liljeblad <oskar-Y7VfMkPRzygsCylrc8G9yg@public.gmane.org>
To: Shirish Pargaonkar
	<shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] CIFS: Assume passwords are encoded according to iocharset
Date: Mon, 11 Apr 2011 21:17:37 +0200	[thread overview]
Message-ID: <20110411191737.GA18433@osk.mine.nu> (raw)
In-Reply-To: <20110411191431.GA18160-Y7VfMkPRzygsCylrc8G9yg@public.gmane.org>

On Monday, April 11, 2011 at 21:31, Oskar Liljeblad wrote:
> On Monday, April 11, 2011 at 12:59, Shirish Pargaonkar wrote:
> > > Modify cifs to assume that the supplied password is encoded according to
> > > iocharset.  Before this patch passwords would be treated as raw 8-bit data,
> > > which made authentication with Unicode passwords impossible (at least
> > > passwords with characters > 0xFF).
> > >
> > > The previous code would as a side effect accept passwords encoded with ISO
> > > 8859-1, since Unicode < 0x100 basically is ISO 8859-1.  Software which
> > > relies on that will no longer support password chars > 0x7F unless it also
> > > uses iocharset=iso8859-1.  (mount.cifs does not care about the encoding so
> > > it will work as expected.)
> > >
> > > Signed-off-by: Oskar Liljeblad <oskar-Y7VfMkPRzygsCylrc8G9yg@public.gmane.org>
> [..]
> > With this patch, I am unable to mount a share if user's password happens to
> > contain characters like $ e.g. aa$a.
> > A Windows client can.
> 
> Hmm, strange, I was not able to reproduce this problem with domain accounts
> on Windows 2008 R2.  For me $ worked. (That is with locale utf-8 at least.)

I'm sorry, please disregard my comment. I tested with the wrong kernel.
I will try again.

Regards,

Oskar

  parent reply	other threads:[~2011-04-11 19:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-27 12:56 [PATCH] CIFS: Assume passwords are encoded according to iocharset Oskar Liljeblad
     [not found] ` <20110327125648.GA3621-Y7VfMkPRzygsCylrc8G9yg@public.gmane.org>
2011-03-27 19:21   ` Shirish Pargaonkar
2011-04-08 13:26   ` Shirish Pargaonkar
2011-04-08 13:31   ` Jeff Layton
     [not found]     ` <20110408093148.748eda25-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-04-08 13:51       ` Shirish Pargaonkar
2011-04-08 14:11       ` Oskar Liljeblad
     [not found]         ` <20110408141112.GA20074-Y7VfMkPRzygsCylrc8G9yg@public.gmane.org>
2011-04-08 14:31           ` Jeff Layton
     [not found]             ` <20110408103118.0f1b2e8b-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-09-21 16:12               ` Shirish Pargaonkar
2011-04-11 17:21   ` Shirish Pargaonkar
     [not found]     ` <BANLkTimEhsjo2vfSE1w-D888hWn72H7Y3A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-11 19:14       ` Oskar Liljeblad
     [not found]         ` <20110411191431.GA18160-Y7VfMkPRzygsCylrc8G9yg@public.gmane.org>
2011-04-11 19:17           ` Oskar Liljeblad [this message]
2011-04-11 19:16       ` Jeff Layton
     [not found]         ` <20110411151637.640495a5-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-04-12  0:16           ` Shirish Pargaonkar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110411191737.GA18433@osk.mine.nu \
    --to=oskar-y7vfmkprzygscylrc8g9yg@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.