summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-06-16 14:59:49 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-06-17 15:40:13 -0400
commitae5716d87c7b126ab01b0d4fcacd4f519585e5fb (patch)
tree8ebd5855d6cb81f4846107bb55b21132dda1e6cf /src/responder/nss/nsssrv.c
parentde3f8b862f4920c2804529698db86f3057fd3c8a (diff)
downloadsssd-ae5716d87c7b126ab01b0d4fcacd4f519585e5fb.tar.gz
sssd-ae5716d87c7b126ab01b0d4fcacd4f519585e5fb.tar.xz
sssd-ae5716d87c7b126ab01b0d4fcacd4f519585e5fb.zip
Refactor the negative cache
Rename functions from nss_ncache_* to sss_ncache_* Move negative cache to responder/common and rename as negcache.c/h
Diffstat (limited to 'src/responder/nss/nsssrv.c')
-rw-r--r--src/responder/nss/nsssrv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c
index ea2dc5186..24753674a 100644
--- a/src/responder/nss/nsssrv.c
+++ b/src/responder/nss/nsssrv.c
@@ -33,7 +33,7 @@
#include "popt.h"
#include "util/util.h"
#include "responder/nss/nsssrv.h"
-#include "responder/nss/nsssrv_nc.h"
+#include "responder/common/negcache.h"
#include "db/sysdb.h"
#include "confdb/confdb.h"
#include "dbus/dbus.h"
@@ -135,7 +135,7 @@ static int nss_get_config(struct nss_ctx *nctx,
continue;
}
- ret = nss_ncache_set_user(nctx->ncache, true, dom->name, name);
+ ret = sss_ncache_set_user(nctx->ncache, true, dom->name, name);
if (ret != EOK) {
DEBUG(1, ("Failed to store permanent user filter for [%s]"
" (%d [%s])\n", filter_list[i],
@@ -174,7 +174,7 @@ static int nss_get_config(struct nss_ctx *nctx,
continue;
}
if (domain) {
- ret = nss_ncache_set_user(nctx->ncache, true, domain, name);
+ ret = sss_ncache_set_user(nctx->ncache, true, domain, name);
if (ret != EOK) {
DEBUG(1, ("Failed to store permanent user filter for [%s]"
" (%d [%s])\n", filter_list[i],
@@ -183,7 +183,7 @@ static int nss_get_config(struct nss_ctx *nctx,
}
} else {
for (dom = rctx->domains; dom; dom = dom->next) {
- ret = nss_ncache_set_user(nctx->ncache, true, dom->name, name);
+ ret = sss_ncache_set_user(nctx->ncache, true, dom->name, name);
if (ret != EOK) {
DEBUG(1, ("Failed to store permanent user filter for"
" [%s:%s] (%d [%s])\n",
@@ -226,7 +226,7 @@ static int nss_get_config(struct nss_ctx *nctx,
continue;
}
- ret = nss_ncache_set_group(nctx->ncache, true, dom->name, name);
+ ret = sss_ncache_set_group(nctx->ncache, true, dom->name, name);
if (ret != EOK) {
DEBUG(1, ("Failed to store permanent group filter for [%s]"
" (%d [%s])\n", filter_list[i],
@@ -265,7 +265,7 @@ static int nss_get_config(struct nss_ctx *nctx,
continue;
}
if (domain) {
- ret = nss_ncache_set_group(nctx->ncache, true, domain, name);
+ ret = sss_ncache_set_group(nctx->ncache, true, domain, name);
if (ret != EOK) {
DEBUG(1, ("Failed to store permanent group filter for"
" [%s] (%d [%s])\n", filter_list[i],
@@ -274,7 +274,7 @@ static int nss_get_config(struct nss_ctx *nctx,
}
} else {
for (dom = rctx->domains; dom; dom = dom->next) {
- ret = nss_ncache_set_group(nctx->ncache, true, dom->name, name);
+ ret = sss_ncache_set_group(nctx->ncache, true, dom->name, name);
if (ret != EOK) {
DEBUG(1, ("Failed to store permanent group filter for"
" [%s:%s] (%d [%s])\n",
@@ -351,7 +351,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
- ret = nss_ncache_init(nctx, &nctx->ncache);
+ ret = sss_ncache_init(nctx, &nctx->ncache);
if (ret != EOK) {
DEBUG(0, ("fatal error initializing negative cache\n"));
return ret;