summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_reinit.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-08 00:59:32 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:53:03 +0100
commit681742138b2afbbefa7f14de937beb438409208e (patch)
tree8261b14012f0d994cfdd91005a237581ae8a400a /src/providers/ldap/sdap_reinit.c
parent740870643f337ce70d85f25f9ed057cd1f91028c (diff)
downloadsssd-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/sdap_reinit.c')
-rw-r--r--src/providers/ldap/sdap_reinit.c5
1 files changed, 3 insertions, 2 deletions
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);