Patch by Jason Gunthorpe.
--HG--
branch : HEAD
#auth_worker_max_request_count = 0
# Host name to use in GSSAPI principal names. The default is to use the
-# name returned by gethostname().
+# name returned by gethostname(). Use "$ALL" to allow all keytab entries.
#auth_gssapi_hostname =
# Kerberos keytab to use for the GSSAPI mechanism. Will use the system
gss_name_t gss_principal;
const char *service_name;
+ if (strcmp(request->auth->gssapi_hostname, "$ALL") == 0) {
+ auth_request_log_info(request, "gssapi",
+ "Using all keytab entries");
+ *ret = GSS_C_NO_CREDENTIAL;
+ return GSS_S_COMPLETE;
+ }
+
if (strcasecmp(request->service, "POP3") == 0) {
/* The standard POP3 service name with GSSAPI is called
just "pop". */