cifs.upcall: try getting a "cifs/" principal and fall back to "host/"
authorJeff Layton <jlayton@redhat.com>
Fri, 14 Aug 2009 11:59:50 +0000 (07:59 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 14 Aug 2009 11:59:50 +0000 (07:59 -0400)
commitb10bdef4e75ffe48d563b2f0825b82519a71c9a7
tree57be6bd335d277339819d2bf5b592b22c154d314
parent750ceb82390bd490bfd0431d52cd83b11201d548
cifs.upcall: try getting a "cifs/" principal and fall back to "host/"

cifs.upcall takes a "-c" flag that tells the upcall to get a principal
in the form of "cifs/hostname.example.com@REALM" instead of
"host/hostname.example.com@REALM". This has turned out to be a source of
great confusion for users.

Instead of requiring this flag, have the upcall try to get a "cifs/"
principal first. If that fails, fall back to getting a "host/"
principal.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
client/cifs.upcall.c
docs-xml/manpages-3/cifs.upcall.8.xml