summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-09-21 23:41:42 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-24 18:23:15 +0200
commit95f5e7963a36b7b68859ce91ae4b232088bbaa09 (patch)
treeb5216b8dc726d1539d9960a43957cb9da2e1ebd1 /src/providers/ldap
parent77f445dbaecc8e792e1ad42e3742800ad141bee0 (diff)
downloadsssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.tar.gz
sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.tar.xz
sssd-95f5e7963a36b7b68859ce91ae4b232088bbaa09.zip
SYSDB: Remove unnecessary domain parameter from several sysdb calls
The domain can be read from the sysdb object. Removing the domain string makes the API more self-contained.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_groups.c2
-rw-r--r--src/providers/ldap/sdap_async_netgroups.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index ac5057e8c..525de6749 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -61,7 +61,7 @@ static int sdap_find_entry_by_origDN(TALLOC_CTX *memctx,
goto done;
}
- base_dn = sysdb_domain_dn(ctx, tmpctx, domain->name);
+ base_dn = sysdb_domain_dn(ctx, tmpctx);
if (!base_dn) {
ret = ENOMEM;
goto done;
diff --git a/src/providers/ldap/sdap_async_netgroups.c b/src/providers/ldap/sdap_async_netgroups.c
index 2262db51c..12715d491 100644
--- a/src/providers/ldap/sdap_async_netgroups.c
+++ b/src/providers/ldap/sdap_async_netgroups.c
@@ -324,7 +324,7 @@ struct tevent_req *netgr_translate_members_send(TALLOC_CTX *memctx,
goto fail;
}
- netgr_basedn = sysdb_netgroup_base_dn(sysdb, state, dom->name);
+ netgr_basedn = sysdb_netgroup_base_dn(sysdb, state);
if (netgr_basedn == NULL) {
ret = ENOMEM;
goto fail;