From b5a99bebff5f7455d9b8bd89f0a81de587c5a9c0 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 16 Oct 2012 15:32:48 -0400 Subject: Change memory cache layout to add optional key This bumps the cache major number to 1 as this change is incompatible with current clients. The addiotinal key is used to allow name aliases to be added to user and group entries. Aliases are a string that can be looked up via the getpwname and getgrnam calls, and are useful to to fetch entries by alternate names. Currently only one, optional alias is allowed. --- src/sss_client/nss_mc_passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sss_client/nss_mc_passwd.c') diff --git a/src/sss_client/nss_mc_passwd.c b/src/sss_client/nss_mc_passwd.c index 4acc6425..1932b151 100644 --- a/src/sss_client/nss_mc_passwd.c +++ b/src/sss_client/nss_mc_passwd.c @@ -124,7 +124,7 @@ errno_t sss_nss_mc_getpwnam(const char *name, size_t name_len, } /* check record matches what we are searching for */ - if (hash != rec->hash1) { + if (hash != rec->hash1 && hash != rec->hash3) { /* if name hash does not match we can skip this immediately */ slot = rec->next; continue; -- cgit