summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_subdomains.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-08-27 11:09:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-28 18:05:02 +0200
commita4644da8f2bd25621ae159d753ffb66df9594dc8 (patch)
tree98dff3417a9bd35596fdf01c63dfb50879b7da08 /src/db/sysdb_subdomains.c
parent3b0e0352d8076909608d04750d3ea6b0d9ba33f6 (diff)
downloadsssd-a4644da8f2bd25621ae159d753ffb66df9594dc8.tar.gz
sssd-a4644da8f2bd25621ae159d753ffb66df9594dc8.tar.xz
sssd-a4644da8f2bd25621ae159d753ffb66df9594dc8.zip
DB: remove unused realm parameter from sysdb_master_domain_add_info
The parameter was not used at all.
Diffstat (limited to 'src/db/sysdb_subdomains.c')
-rw-r--r--src/db/sysdb_subdomains.c21
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,