Two new flags for krb5_parse_name_flags_realm():
- KRB5_PRINCIPAL_PARSE_IGNORE_REALM: MIT compatible - KRB5_PRINCIPAL_PARSE_NO_DEF_REALM: Don't default the realm The first ignores the realm if present. The second does not impute the default realm if no realm is given and leaves the realm NULL. This will be used in kinit to determine whether the user provided a realm or not, and if not we may use the user_realm, or find the realm via the keytab.
This commit is contained in:

committed by
Viktor Dukhovni

parent
a2127d091d
commit
4fcad71a3a
@@ -838,7 +838,9 @@ typedef krb5_error_code
|
||||
enum {
|
||||
KRB5_PRINCIPAL_PARSE_NO_REALM = 1, /**< Require that there are no realm */
|
||||
KRB5_PRINCIPAL_PARSE_REQUIRE_REALM = 2, /**< Require a realm present */
|
||||
KRB5_PRINCIPAL_PARSE_ENTERPRISE = 4 /**< Parse as a NT-ENTERPRISE name */
|
||||
KRB5_PRINCIPAL_PARSE_ENTERPRISE = 4, /**< Parse as a NT-ENTERPRISE name */
|
||||
KRB5_PRINCIPAL_PARSE_IGNORE_REALM = 8, /**< Ignore realm if present */
|
||||
KRB5_PRINCIPAL_PARSE_NO_DEF_REALM = 16 /**< Don't default the realm */
|
||||
};
|
||||
|
||||
/** flags for krb5_unparse_name_flags */
|
||||
|
Reference in New Issue
Block a user