From: Howard Chu Date: Thu, 17 Sep 2009 09:33:08 +0000 (+0000) Subject: Fix: minuid/maxuid test used wrong attribute X-Git-Tag: ACLCHECK_0~219 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76cc2f14b6dc94988f7a8a9c6a6a83f7475e340a;p=openldap Fix: minuid/maxuid test used wrong attribute --- 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;