Linux CIFS filesystem development
 help / color / mirror / Atom feed
* Re: Build infrastructure for storing NTLM creds in kernel keyring
@ 2010-07-08 16:14 Igor Druzhinin
       [not found] ` <469B064927F7461992FFB15852A3B90F-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Igor Druzhinin @ 2010-07-08 16:14 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA

Hello,
After small research I was defined with a key format. It is a "user" key
type with the description in next format
ntlminit:host_ip_addr:username:domain for everyone host_ip_addr returned by
getaddrinfo() from host entered by the user. The domain field can be empty
and payload consists of plain password.

Now I am puting my keys directly in the session keyring. Whether it is
necessary to create separate keyring or it is possible to do without it?

Also I have thought over algorithm of addition of a key in session keyring.
If at least for one of the host's IP addresses there is a key with it in the
description (with the same username and domain name of course) new keys are
not will be added. Whether it is correct?

Regards,
Igor Druzhinin

----- Original Message ----- 
From: "Jeff Layton" <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: "Jeff Layton" <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
Cc: "Igor Druzhinin" <jaxbrigs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>; <linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Sent: Tuesday, July 06, 2010 3:09 PM
Subject: Re: Build infrastructure for storing NTLM creds in kernel keyring


> On Tue, 6 Jul 2010 07:00:56 -0400
> Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote:
>
>> On Tue, 6 Jul 2010 14:04:44 +0400
>> "Igor Druzhinin" <jaxbrigs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>
>> > As I saw current kernel code had no method for checking from userspace
>> > is
>> > the entered credentials are wrong without mount. Is it's right?
>>
>> Correct. You really can't check without connecting to the server.
>
> We certainly could have this tool use libsmbclient to connect to the
> server and authenticate to test the creds. I wouldn't bother with that
> for the initial implementation though -- keep it simple. Still it's
> something to keep in mind while you're coding this up.
>
>>
>> > But if user want to update them there are should be a mechanism for
>> > clearing
>> > old or wrong creds. As my opinion it may be something like --clear
>> > option.
>>
>> Sounds good. You will want to be able to update or clear invalid creds.
>>
>> > Besides, is it right to store multiple identical creds in keyring or
>> > creds
>> > with the same user and domain_host name?
>>
>> Not sure that I see any point in multiple creds per user@host or
>> user@domain. Only one will ever be valid for each combination. Why
>> would you want multiple sets? How would you know which ones to use?
>>
>
>
> -- 
> Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> 

^ permalink raw reply	[flat|nested] 15+ messages in thread
[parent not found: <CC75E34383A8445493DD41AF4F7E7857@lan.jax.org.ru>]
[parent not found: <20100430091431.624ee020@tlielax.poochiereds.net>]

end of thread, other threads:[~2010-08-05 20:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 16:14 Build infrastructure for storing NTLM creds in kernel keyring Igor Druzhinin
     [not found] ` <469B064927F7461992FFB15852A3B90F-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
2010-07-08 16:59   ` Jeff Layton
2010-07-08 17:28     ` Igor Druzhinin
     [not found]       ` <7E471FB7A6424D8595FEB4122BC8E0BA-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
2010-07-08 18:04         ` Jeff Layton
2010-07-09  8:54     ` Igor Druzhinin
     [not found] <CC75E34383A8445493DD41AF4F7E7857@lan.jax.org.ru>
     [not found] ` <20100721100503.672a735e@tlielax.poochiereds.net>
     [not found]   ` <9DFCDE0105DF4B70AEA82A8A2B2A2A94@lan.jax.org.ru>
     [not found]     ` <20100722093121.4c64b102@barsoom.rdu.redhat.com>
2010-07-29 13:52       ` Igor Druzhinin
     [not found]         ` <54DA210795E649C1A62B5E10BF366BB3-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
2010-08-04 11:31           ` Jeff Layton
2010-08-05 15:43             ` Igor Druzhinin
     [not found]               ` <9EE2EFBFF2304A849754EEE0F1C1CE29-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
2010-08-05 18:03                 ` Jeff Layton
2010-08-05 18:48                   ` Igor Druzhinin
     [not found]                     ` <583072918FF1484C9380D991E5A4E83C-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
2010-08-05 20:12                       ` Jeff Layton
     [not found] <20100430091431.624ee020@tlielax.poochiereds.net>
     [not found] ` <EB4CC79E8F0546FF8AFBFD746C856421@lan.jax.org.ru>
     [not found]   ` <20100525121037.219129da@corrin.poochiereds.net>
     [not found]     ` <2AF95C52855747BABAE21349F35C773E@lan.jax.org.ru>
     [not found]       ` <20100601074406.5b8f7a87@tlielax.poochiereds.net>
     [not found]         ` <73A4A0D322484441A6CEF0FE91E5D263@lan.jax.org.ru>
     [not found]           ` <73A4A0D322484441A6CEF0FE91E5D263-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
2010-06-25 20:16             ` Jeff Layton
2010-07-06 10:04               ` Igor Druzhinin
     [not found]                 ` <C3BD4CBCCAD04D9EA6E04D3B157A69A4-PUkIMHyhFB22ZuJnPpCLiw@public.gmane.org>
2010-07-06 11:00                   ` Jeff Layton
     [not found]                     ` <20100706070056.0b37e3d3-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2010-07-06 11:09                       ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox