cifs.upcall: try getting a "cifs/" principal and fall back to "host/"
commite919c3ac1229eae35614b92a9daebc71e770ca1b
authorJeff Layton <jlayton@redhat.com>
Wed, 14 Oct 2009 15:04:56 +0000 (14 11:04 -0400)
committerKarolin Seeger <kseeger@samba.org>
Fri, 16 Oct 2009 13:04:55 +0000 (16 15:04 +0200)
treed946f33115d666efe9f5761d0deb7fba00cc789a
parent0b516e8e9e5b1c4b2ab32b27c37ec708d6afd5d2
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>
docs-xml/manpages-3/cifs.upcall.8.xml
source/client/cifs.upcall.c