diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-27 11:09:58 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-28 18:05:02 +0200 |
commit | a4644da8f2bd25621ae159d753ffb66df9594dc8 (patch) | |
tree | 98dff3417a9bd35596fdf01c63dfb50879b7da08 /src/db | |
parent | 3b0e0352d8076909608d04750d3ea6b0d9ba33f6 (diff) | |
download | sssd-a4644da8f2bd25621ae159d753ffb66df9594dc8.tar.gz sssd-a4644da8f2bd25621ae159d753ffb66df9594dc8.tar.bz2 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')
-rw-r--r-- | src/db/sysdb.h | 3 | ||||
-rw-r--r-- | src/db/sysdb_subdomains.c | 21 |
2 files changed, 2 insertions, 22 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index b91596c4..536cac7a 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -378,8 +378,7 @@ errno_t sysdb_update_subdomains(struct sss_domain_info *domain); errno_t sysdb_master_domain_update(struct sss_domain_info *domain); 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); errno_t sysdb_subdomain_delete(struct sysdb_ctx *sysdb, const char *name); diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index c89e4569..0e7514ba 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, |