summaryrefslogtreecommitdiffstats
path: root/src/providers/krb5/krb5_common.h
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2015-04-30 06:43:05 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-05-28 11:04:28 +0200
commitaa8a8318aaa3270e9d9957d0c22dec6342360a37 (patch)
tree9f6ccd9d2cc601adde7f21fa161715f9d76aee2d /src/providers/krb5/krb5_common.h
parent62b20154899f847e760d6dfbae6a32fb45b448de (diff)
downloadsssd-aa8a8318aaa3270e9d9957d0c22dec6342360a37.tar.gz
sssd-aa8a8318aaa3270e9d9957d0c22dec6342360a37.tar.xz
sssd-aa8a8318aaa3270e9d9957d0c22dec6342360a37.zip
krb5: new option krb5_map_user
New option `krb5_map_user` providing mapping of ID provider names to Kerberos principals. Resolves: https://fedorahosted.org/sssd/ticket/2509 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/krb5/krb5_common.h')
-rw-r--r--src/providers/krb5/krb5_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_common.h b/src/providers/krb5/krb5_common.h
index 81e64688a..8f6fb229a 100644
--- a/src/providers/krb5/krb5_common.h
+++ b/src/providers/krb5/krb5_common.h
@@ -67,6 +67,7 @@ enum krb5_opts {
KRB5_CANONICALIZE,
KRB5_USE_ENTERPRISE_PRINCIPAL,
KRB5_USE_KDCINFO,
+ KRB5_MAP_USER,
KRB5_OPTS
};
@@ -89,6 +90,11 @@ enum krb5_config_type {
K5C_IPA_SERVER
};
+struct map_id_name_to_krb_primary {
+ const char *id_name;
+ const char* krb_primary;
+};
+
struct krb5_ctx {
/* opts taken from kinit */
/* in seconds */
@@ -128,6 +134,8 @@ struct krb5_ctx {
hash_table_t *wait_queue_hash;
enum krb5_config_type config_type;
+
+ struct map_id_name_to_krb_primary *name_to_primary;
};
struct remove_info_files_ctx {