add constant for WELLKNOWN:ORG.H5L realm
This commit is contained in:
@@ -233,7 +233,7 @@ init(struct init_options *opt, int argc, char **argv)
|
||||
|
||||
|
||||
/* Create `WELLKNONW/org.h5l.fast-cookie@WELLKNOWN:ORG.H5L' for FAST cookie */
|
||||
krb5_make_principal(context, &princ, "WELLKNOWN:ORG.H5L",
|
||||
krb5_make_principal(context, &princ, KRB5_WELLKNOWN_ORG_H5L_REALM,
|
||||
KRB5_WELLKNOWN_NAME, "org.h5l.fast-cookie", NULL);
|
||||
create_random_entry(princ, 60*60, 60*60,
|
||||
KRB5_KDB_REQUIRES_PRE_AUTH|
|
||||
|
@@ -46,8 +46,8 @@ get_fastuser_crypto(kdc_request_t r, krb5_enctype enctype, krb5_crypto *crypto)
|
||||
*crypto = NULL;
|
||||
|
||||
ret = krb5_make_principal(r->context, &fast_princ,
|
||||
"WELLKNOWN:ORG.H5L",
|
||||
"WELLKNOWN", "org.h5l.fast-cookie", NULL);
|
||||
KRB5_WELLKNOWN_ORG_H5L_REALM,
|
||||
KRB5_WELLKNOWN_NAME, "org.h5l.fast-cookie", NULL);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
@@ -686,6 +686,7 @@ typedef EncAPRepPart krb5_ap_rep_enc_part;
|
||||
#define KRB5_WELLKNOWN_NAME ("WELLKNOWN")
|
||||
#define KRB5_ANON_NAME ("ANONYMOUS")
|
||||
#define KRB5_ANON_REALM ("WELLKNOWN:ANONYMOUS")
|
||||
#define KRB5_WELLKNOWN_ORG_H5L_REALM ("WELLKNOWN:ORG.H5L")
|
||||
#define KRB5_DIGEST_NAME ("digest")
|
||||
|
||||
typedef enum {
|
||||
|
Reference in New Issue
Block a user