diff options
-rw-r--r-- | src/util/sss_krb5.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c index 38374578..0eb032a7 100644 --- a/src/util/sss_krb5.c +++ b/src/util/sss_krb5.c @@ -49,14 +49,18 @@ errno_t select_principal_from_keytab(TALLOC_CTX *mem_ctx, /** * Priority of lookup: + * - our.hostname@REALM or host/our.hostname@REALM depending on the input + * - our.hostname$@REALM (AD domain) * - foobar$@REALM (AD domain) * - host/our.hostname@REALM * - host/foobar@REALM * - host/foo@BAR * - pick the first principal in the keytab */ - const char *primary_patterns[] = {"%s$", "*$", "host/%s", "host/*", "host/*", NULL}; - const char *realm_patterns[] = {"%s", "%s", "%s", "%s", NULL, NULL}; + const char *primary_patterns[] = {"%s", "%s$", "*$", "host/%s", "host/*", + "host/*", NULL}; + const char *realm_patterns[] = {"%s", "%s", "%s", "%s", "%s", + NULL, NULL}; DEBUG(5, ("trying to select the most appropriate principal from keytab\n")); tmp_ctx = talloc_new(NULL); |