diff options
author | Simo Sorce <idra@samba.org> | 2009-01-11 12:17:18 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-11 12:17:18 -0500 |
commit | 28fc5582c207d493a33406222da517a241a157ec (patch) | |
tree | 87b4944e91df4b3783da193c58c3e8f5734a5344 /server/nss/nss_ldb.h | |
parent | 91dfe750f64cc0d8a970864959767379e0d128db (diff) | |
download | sssd-28fc5582c207d493a33406222da517a241a157ec.tar.gz sssd-28fc5582c207d493a33406222da517a241a157ec.tar.bz2 sssd-28fc5582c207d493a33406222da517a241a157ec.zip |
Add caching behavior to nsssrv_cmd.c check cache first and
dispatch to backends only if we have a cache miss.
Diffstat (limited to 'server/nss/nss_ldb.h')
-rw-r--r-- | server/nss/nss_ldb.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/nss/nss_ldb.h b/server/nss/nss_ldb.h index b41c7a67..eee4344f 100644 --- a/server/nss/nss_ldb.h +++ b/server/nss/nss_ldb.h @@ -29,13 +29,15 @@ #define NSS_DEF_GR_GIDNUM "gidNumber" #define NSS_DEF_GR_MEMBER "member" +#define NSS_DEF_LAST_UPDATE "lastUpdate" + #define NSS_DEF_PW_ATTRS {NSS_DEF_PW_NAME, NSS_DEF_PW_UIDNUM, \ NSS_DEF_PW_GIDNUM, NSS_DEF_PW_FULLNAME, \ NSS_DEF_PW_HOMEDIR, NSS_DEF_PW_SHELL, \ - NULL} -#define NSS_DEF_GRNAM_ATTRS {NSS_DEF_GR_NAME, NSS_DEF_GR_GIDNUM, NULL} -#define NSS_DEF_GRPW_ATTRS {NSS_DEF_PW_NAME, NULL} + NSS_DEF_LAST_UPDATE, NULL} +#define NSS_DEF_GRNAM_ATTRS {NSS_DEF_GR_NAME, NSS_DEF_GR_GIDNUM, NSS_DEF_LAST_UPDATE, NULL} +#define NSS_DEF_GRPW_ATTRS {NSS_DEF_PW_NAME, NSS_DEF_LAST_UPDATE, NULL} #define NSS_DEF_INITGR_ATTR "memberof" -#define NSS_DEF_INITGR_ATTRS {NSS_DEF_GR_GIDNUM, NULL} +#define NSS_DEF_INITGR_ATTRS {NSS_DEF_GR_GIDNUM, NSS_DEF_LAST_UPDATE, NULL} |