From 4c056813c8afee16038b6d197f29ae12817c0488 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 1 Apr 2009 10:21:20 -0400 Subject: Add way to use files as a proxy backend fro LOCAL Makes LOCAL a normal backend removing some special handling. Fix/Add id range filtering and name filtering Filters uid=0 and gid=0 in the proxy backend as 0 is invalid within sysdb and was causing getxxent calls to fail completely. Fix nss_ncache_check_xxx calls to avoid dirtying the 'ret' variable and causing some unwanted failures. Change sysdb to always return the uid number when searching member entries so that id range filtering can be perfomed also in group searhes (does not work with legacy backends) --- server/db/sysdb_search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/db/sysdb_search.c') diff --git a/server/db/sysdb_search.c b/server/db/sysdb_search.c index 42470b635..7dd467e87 100644 --- a/server/db/sysdb_search.c +++ b/server/db/sysdb_search.c @@ -481,7 +481,7 @@ static int get_grp_callback(struct ldb_request *req, static void grp_search(struct sysdb_req *sysreq, void *ptr) { struct sysdb_search_ctx *sctx; - static const char *attrs[] = SYSDB_GRNAM_ATTRS; + static const char *attrs[] = SYSDB_GRSRC_ATTRS; struct ldb_request *req; struct ldb_dn *base_dn; int ret; -- cgit