]> git.sur5r.net Git - openldap/commitdiff
Fix: minuid/maxuid test used wrong attribute
authorHoward Chu <hyc@openldap.org>
Thu, 17 Sep 2009 09:33:08 +0000 (09:33 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 17 Sep 2009 09:33:08 +0000 (09:33 +0000)
contrib/slapd-modules/nssov/pam.c

index 2f3969dd2d93249f013e9cf7e4eb0d5de5be51b5..bf943a3cf467af5e97f4ed6790ca8e741e266429 100644 (file)
@@ -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;