From 6a9ef2c0105d316a1286c92073511ff95301c39f Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 20 Sep 2013 12:12:03 +0200 Subject: krb5: save canonical upn to sysdb If the returned TGT contains a different user principal name (upn) than used in the request, i.e. the upn was canonicalized, we currently save it to sysdb into the same attribute where the upn coming from an LDAP server is stored as well. This means the canonical upn might be overwritten when the user data is re-read from the LDAP server. To avoid this this patch add a new attribute to sysdb where the canonical upn is stored and makes sure it is used when available. Fixes https://fedorahosted.org/sssd/ticket/2060 --- src/db/sysdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/db') diff --git a/src/db/sysdb.h b/src/db/sysdb.h index b95946647..f92321762 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -108,6 +108,7 @@ #define SYSDB_PRIMARY_GROUP_GIDNUM "origPrimaryGroupGidNumber" #define SYSDB_SID_STR "objectSIDString" #define SYSDB_UPN "userPrincipalName" +#define SYSDB_CANONICAL_UPN "canonicalUserPrincipalName" #define SYSDB_CCACHE_FILE "ccacheFile" #define SYSDB_ORIG_DN "originalDN" -- cgit