cifs.upcall: try getting a "cifs/" principal and fall back to "host/"
authorJeff Layton <jlayton@redhat.com>
Wed, 14 Oct 2009 14:58:20 +0000 (10:58 -0400)
committerKarolin Seeger <kseeger@samba.org>
Tue, 20 Oct 2009 13:00:32 +0000 (15:00 +0200)
commit9d1517e8fa2e4252685a36e35b5efe60ff8bec39
tree1bd21f94d5280e4b1e3a1b79b15505718d613782
parent9724c2e38497a87b078a163f68c5372886f90c60
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>
(cherry picked from commit edca7df0dd43ee1d7ae2fc4954470efdf64a4d8e)
docs-xml/manpages-3/cifs.upcall.8.xml
source3/client/cifs.upcall.c