summaryrefslogtreecommitdiffstats
path: root/src/sss_client/nss_mc_passwd.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-10-16 15:32:48 -0400
committerSimo Sorce <simo@redhat.com>2013-01-04 14:39:23 -0500
commitb5a99bebff5f7455d9b8bd89f0a81de587c5a9c0 (patch)
treebf4fb0f1578d43caeaf0587624347be39598763c /src/sss_client/nss_mc_passwd.c
parent9366febd6ec9b1fe588fee4a4542ea75cc857abf (diff)
downloadsssd-b5a99bebff5f7455d9b8bd89f0a81de587c5a9c0.tar.gz
sssd-b5a99bebff5f7455d9b8bd89f0a81de587c5a9c0.tar.xz
sssd-b5a99bebff5f7455d9b8bd89f0a81de587c5a9c0.zip
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.
Diffstat (limited to 'src/sss_client/nss_mc_passwd.c')
-rw-r--r--src/sss_client/nss_mc_passwd.c2
1 files changed, 1 insertions, 1 deletions
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;