From 76cc2f14b6dc94988f7a8a9c6a6a83f7475e340a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 17 Sep 2009 09:33:08 +0000 Subject: [PATCH] Fix: minuid/maxuid test used wrong attribute --- contrib/slapd-modules/nssov/pam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/slapd-modules/nssov/pam.c b/contrib/slapd-modules/nssov/pam.c index 2f3969dd2d..bf943a3cf4 100644 --- a/contrib/slapd-modules/nssov/pam.c +++ b/contrib/slapd-modules/nssov/pam.c @@ -425,7 +425,7 @@ int pam_authz(nssov_info *ni,TFILE *fp,Operation *op) if (ni->ni_pam_min_uid || ni->ni_pam_max_uid) { int id; char *tmp; - nssov_mapinfo *mi = &ni->ni_maps[NM_host]; + nssov_mapinfo *mi = &ni->ni_maps[NM_passwd]; a = attr_find(e->e_attrs, mi->mi_attrs[UIDN_KEY].an_desc); if (!a) { rc = NSLCD_PAM_PERM_DENIED; -- 2.39.5