summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-04-01 10:21:20 -0400
committerSimo Sorce <ssorce@redhat.com>2009-04-01 11:03:08 -0400
commit4c056813c8afee16038b6d197f29ae12817c0488 (patch)
treec54f1df0946ae0becefdbd48292faba3b7a95c50 /server/db/sysdb.h
parent499e4d63fe57875338777f0ac4455693307b4c56 (diff)
downloadsssd-4c056813c8afee16038b6d197f29ae12817c0488.tar.gz
sssd-4c056813c8afee16038b6d197f29ae12817c0488.tar.xz
sssd-4c056813c8afee16038b6d197f29ae12817c0488.zip
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)
Diffstat (limited to 'server/db/sysdb.h')
-rw-r--r--server/db/sysdb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/db/sysdb.h b/server/db/sysdb.h
index 9e2cb39d2..ec87ec07a 100644
--- a/server/db/sysdb.h
+++ b/server/db/sysdb.h
@@ -107,11 +107,12 @@
SYSDB_USERPIC, \
SYSDB_LAST_UPDATE, \
NULL}
-#define SYSDB_GRNAM_ATTRS {SYSDB_NAME, SYSDB_GIDNUM, \
+#define SYSDB_GRSRC_ATTRS {SYSDB_NAME, SYSDB_GIDNUM, \
SYSDB_LAST_UPDATE, SYSDB_LEGACY_MEMBER, \
"objectClass", \
NULL}
-#define SYSDB_GRPW_ATTRS {SYSDB_NAME, SYSDB_LAST_UPDATE, \
+#define SYSDB_GRPW_ATTRS {SYSDB_NAME, SYSDB_UIDNUM, \
+ SYSDB_LAST_UPDATE, \
"objectClass", \
NULL}