]> git.karo-electronics.de Git - mv-sheeva.git/commit
cifs: fetch credentials out of keyring for non-krb5 auth multiuser mounts
authorJeff Layton <jlayton@redhat.com>
Tue, 17 Jan 2012 21:09:15 +0000 (16:09 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 18 Jan 2012 04:40:28 +0000 (22:40 -0600)
commit8a8798a5ff90977d6459ce1d657cf8fe13a51e97
tree42708337792bc20295faed2c78f4dca89e009ffa
parent04febabcf55beeffb8794a0d8c539e571bd2ae29
cifs: fetch credentials out of keyring for non-krb5 auth multiuser mounts

Fix up multiuser mounts to set the secType and set the username and
password from the key payload in the vol info for non-krb5 auth types.

Look for a key of type "secret" with a description of
"cifs:a:<server address>" or "cifs:d:<domainname>". If that's found,
then scrape the username and password out of the key payload and use
that to create a new user session.

Finally, don't have the code enforce krb5 auth on multiuser mounts,
but do require a kernel with keys support.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c