bx509: Let simple authorizer use the app name

This commit is contained in:
Nicolas Williams
2020-08-19 20:00:58 -05:00
parent 4f0249cd94
commit cb6c57dc36
2 changed files with 2 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ authorize(void *ctx,
char *princ = NULL;
char *s = NULL;
if ((d = krb5_config_get_string(context, NULL, "kdc",
if ((d = krb5_config_get_string(context, NULL, app ? app : "kdc",
"simple_csr_authorizer_directory",
NULL)) == NULL)
return KRB5_PLUGIN_NO_HANDLE;