Improve acceptor name flexibility
authorGreg Hudson <ghudson@mit.edu>
Mon, 7 Feb 2011 18:40:00 +0000 (18:40 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 7 Feb 2011 18:40:00 +0000 (18:40 +0000)
commit66587fcd6380eac2c53674df4f64a827d337aee5
treee3e98004479a87b3f1e1171056464f3a6be65d95
parent1b46b254240d95534b7a3ee1f45ac85f6c38db1b
Improve acceptor name flexibility

Be more flexible about the principal names we will accept for a given
GSS acceptor name.  Also add support for a new libdefaults profile
variable ignore_acceptor_hostname, which causes the hostnames of
host-based service principals to be ignored when passed by server
applications as acceptor names.

Note that we still always invoke krb5_sname_to_principal() when
importing a gss-krb5 mechanism name, even though we won't always use
the result.  This is an unfortunate waste of getaddrinfo/getnameinfo
queries in some situations, but the code surgery necessary to defer
it appears too risky at this time.

The project proposal for this change is at:

http://k5wiki.kerberos.org/wiki/Projects/Acceptor_Names

ticket: 6855

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24616 dc483132-0cff-0310-8789-dd5450dbe970
20 files changed:
doc/admin.texinfo
src/config-files/krb5.conf.M
src/include/k5-int.h
src/include/krb5/krb5.hin
src/lib/gssapi/krb5/accept_sec_context.c
src/lib/gssapi/krb5/acquire_cred.c
src/lib/gssapi/krb5/gssapiP_krb5.h
src/lib/gssapi/krb5/import_name.c
src/lib/gssapi/krb5/naming_exts.c
src/lib/gssapi/krb5/s4u_gss_glue.c
src/lib/gssapi/krb5/ser_sctx.c
src/lib/krb5/krb/Makefile.in
src/lib/krb5/krb/init_ctx.c
src/lib/krb5/krb/rd_req_dec.c
src/lib/krb5/krb/sname_match.c [new file with mode: 0644]
src/lib/krb5/libkrb5.exports
src/lib/krb5_32.def
src/tests/gssapi/Makefile.in
src/tests/gssapi/t_accname.c [new file with mode: 0644]
src/tests/gssapi/t_gssapi.py