diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-08 00:59:32 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:03 +0100 |
commit | 681742138b2afbbefa7f14de937beb438409208e (patch) | |
tree | 8261b14012f0d994cfdd91005a237581ae8a400a /src/providers/ldap | |
parent | 740870643f337ce70d85f25f9ed057cd1f91028c (diff) | |
download | sssd-681742138b2afbbefa7f14de937beb438409208e.tar.gz sssd-681742138b2afbbefa7f14de937beb438409208e.tar.xz sssd-681742138b2afbbefa7f14de937beb438409208e.zip |
Add domain arguments to sysdb services functions
also fix sysdb_svc_add declarations
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/ldap_id_services.c | 4 | ||||
-rw-r--r-- | src/providers/ldap/sdap_reinit.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/providers/ldap/ldap_id_services.c b/src/providers/ldap/ldap_id_services.c index b02913514..1a2a7b6bc 100644 --- a/src/providers/ldap/ldap_id_services.c +++ b/src/providers/ldap/ldap_id_services.c @@ -243,7 +243,7 @@ services_get_done(struct tevent_req *subreq) /* Ensure that this entry is removed from the sysdb */ switch(state->filter_type) { case BE_FILTER_NAME: - ret = sysdb_svc_delete(state->sysdb, state->name, + ret = sysdb_svc_delete(state->sysdb, state->domain, state->name, 0, state->protocol); if (ret != EOK) { tevent_req_error(req, ret); @@ -258,7 +258,7 @@ services_get_done(struct tevent_req *subreq) return; } - ret = sysdb_svc_delete(state->sysdb, NULL, + ret = sysdb_svc_delete(state->sysdb, state->domain, NULL, port, state->protocol); if (ret != EOK) { tevent_req_error(req, ret); diff --git a/src/providers/ldap/sdap_reinit.c b/src/providers/ldap/sdap_reinit.c index dd49c7b89..3fba9360b 100644 --- a/src/providers/ldap/sdap_reinit.c +++ b/src/providers/ldap/sdap_reinit.c @@ -163,7 +163,8 @@ static errno_t sdap_reinit_clear_usn(struct sysdb_ctx *sysdb, msgs_num = 0; /* reset services' usn */ - ret = sysdb_search_services(tmp_ctx, sysdb, "", attrs, &msgs_num, &msgs); + ret = sysdb_search_services(tmp_ctx, sysdb, domain, + "", attrs, &msgs_num, &msgs); sdap_delete_msgs_usn(sysdb, msgs, msgs_num); talloc_zfree(msgs); msgs_num = 0; @@ -290,7 +291,7 @@ static errno_t sdap_reinit_delete_records(struct sysdb_ctx *sysdb, msgs_num = 0; /* purge untouched services */ - ret = sysdb_search_services(tmp_ctx, sysdb, "(!("SYSDB_USN"=*))", + ret = sysdb_search_services(tmp_ctx, sysdb, domain, "(!("SYSDB_USN"=*))", attrs, &msgs_num, &msgs); sdap_delete_msgs_dn(sysdb, msgs, msgs_num); talloc_zfree(msgs); |