diff options
Diffstat (limited to 'src/db/sysdb_subdomains.c')
-rw-r--r-- | src/db/sysdb_subdomains.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index c89e45694..0e7514baa 100644 --- a/src/db/sysdb_subdomains.c +++ b/src/db/sysdb_subdomains.c @@ -251,8 +251,7 @@ done: } errno_t sysdb_master_domain_add_info(struct sss_domain_info *domain, - const char *realm, const char *flat, - const char *id) + const char *flat, const char *id) { TALLOC_CTX *tmp_ctx; struct ldb_message *msg; @@ -277,24 +276,6 @@ errno_t sysdb_master_domain_add_info(struct sss_domain_info *domain, goto done; } - if (realm != NULL && (domain->realm == NULL || - strcmp(domain->realm, realm) != 0)) { - ret = ldb_msg_add_empty(msg, SYSDB_SUBDOMAIN_REALM, - LDB_FLAG_MOD_REPLACE, NULL); - if (ret != LDB_SUCCESS) { - ret = sysdb_error_to_errno(ret); - goto done; - } - - ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_REALM, realm); - if (ret != LDB_SUCCESS) { - ret = sysdb_error_to_errno(ret); - goto done; - } - - do_update = true; - } - if (flat != NULL && (domain->flat_name == NULL || strcmp(domain->flat_name, flat) != 0)) { ret = ldb_msg_add_empty(msg, SYSDB_SUBDOMAIN_FLAT, |