diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 23:47:44 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:02 +0100 |
commit | 84c986f9bb2767d8930b6f5d92d34b09b8fabe60 (patch) | |
tree | 7552ac57f6701e1bae11fa977e7eb4bf45b91177 /src/providers/proxy | |
parent | a58ccee5afc802c7560624929614616aeefa9bd0 (diff) | |
download | sssd-84c986f9bb2767d8930b6f5d92d34b09b8fabe60.tar.gz sssd-84c986f9bb2767d8930b6f5d92d34b09b8fabe60.tar.xz sssd-84c986f9bb2767d8930b6f5d92d34b09b8fabe60.zip |
Add domain arg to sysdb_search/delete_netgroup()
Diffstat (limited to 'src/providers/proxy')
-rw-r--r-- | src/providers/proxy/proxy_netgroup.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/providers/proxy/proxy_netgroup.c b/src/providers/proxy/proxy_netgroup.c index 5dc8efe7..04a0b18d 100644 --- a/src/providers/proxy/proxy_netgroup.c +++ b/src/providers/proxy/proxy_netgroup.c @@ -101,8 +101,8 @@ static errno_t save_netgroup(struct sysdb_ctx *sysdb, return EOK; } -static errno_t handle_error(enum nss_status status, - struct sysdb_ctx *sysdb, const char *name) +static errno_t handle_error(enum nss_status status, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *name) { errno_t ret; @@ -114,7 +114,7 @@ static errno_t handle_error(enum nss_status status, case NSS_STATUS_NOTFOUND: DEBUG(SSSDBG_MINOR_FAILURE, ("The netgroup was not found\n")); - ret = sysdb_delete_netgroup(sysdb, name); + ret = sysdb_delete_netgroup(sysdb, domain, name); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, ("Cannot delete netgroup: %d\n", ret)); ret = EIO; @@ -153,7 +153,7 @@ errno_t get_netgroup(struct proxy_id_ctx *ctx, if (status != NSS_STATUS_SUCCESS) { DEBUG(SSSDBG_OP_FAILURE, ("setnetgrent failed for netgroup [%s].\n", name)); - ret = handle_error(status, sysdb, name); + ret = handle_error(status, sysdb, dom, name); goto done; } @@ -176,7 +176,7 @@ errno_t get_netgroup(struct proxy_id_ctx *ctx, if (status != NSS_STATUS_SUCCESS && status != NSS_STATUS_RETURN && status != NSS_STATUS_NOTFOUND) { - ret = handle_error(status, sysdb, name); + ret = handle_error(status, sysdb, dom, name); DEBUG(SSSDBG_OP_FAILURE, ("getnetgrent_r failed for netgroup [%s]: [%d][%s].\n", name, ret, strerror(ret))); @@ -195,7 +195,7 @@ errno_t get_netgroup(struct proxy_id_ctx *ctx, status = ctx->ops.endnetgrent(&result); if (status != NSS_STATUS_SUCCESS) { DEBUG(SSSDBG_OP_FAILURE, ("endnetgrent failed.\n")); - ret = handle_error(status, sysdb, name); + ret = handle_error(status, sysdb, dom, name); goto done; } |