diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c index ec944d91f4f..7f61682127a 100644 --- a/src/providers/ipa/ipa_s2n_exop.c +++ b/src/providers/ipa/ipa_s2n_exop.c @@ -2468,7 +2468,6 @@ static errno_t ipa_s2n_save_objects(struct sss_domain_info *dom, time_t now; struct sss_nss_homedir_ctx homedir_ctx; char *name = NULL; - char *upn = NULL; gid_t gid; gid_t orig_gid = 0; TALLOC_CTX *tmp_ctx; @@ -2543,22 +2542,6 @@ static errno_t ipa_s2n_save_objects(struct sss_domain_info *dom, DEBUG(SSSDBG_OP_FAILURE, "sysdb_attrs_get_string failed.\n"); goto done; } - - ret = sysdb_attrs_get_string(attrs->sysdb_attrs, SYSDB_UPN, &tmp_str); - if (ret == EOK) { - upn = talloc_strdup(tmp_ctx, tmp_str); - if (upn == NULL) { - DEBUG(SSSDBG_OP_FAILURE, "talloc_strdup failed.\n"); - ret = ENOMEM; - goto done; - } - DEBUG(SSSDBG_TRACE_ALL, "Found original AD upn [%s].\n", upn); - } else if (ret == ENOENT) { - upn = NULL; - } else { - DEBUG(SSSDBG_OP_FAILURE, "sysdb_attrs_get_string failed.\n"); - goto done; - } } if (strcmp(dom->name, attrs->domain_name) != 0) {