]> git.sur5r.net Git - openldap/commitdiff
Add tty arg to authz
authorHoward Chu <hyc@openldap.org>
Wed, 3 Jun 2009 02:28:22 +0000 (02:28 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 3 Jun 2009 02:28:22 +0000 (02:28 +0000)
contrib/slapd-modules/nssov/nss-ldapd/nss/pam.c

index 3e724b26f4e8899950675c74b0dd765bc5520f0b..abeae198e36b0f3c6979241276eed78241a2b248 100644 (file)
@@ -435,7 +435,7 @@ int pam_sm_acct_mgmt(
 
        ctx2.dn = ctx->dn;
        ctx2.user = ctx->user;
-       rc = pam_do_authz(&ctx2, svc, ruser, rhost, &err);
+       rc = pam_do_authz(&ctx2, svc, ruser, rhost, tty, &err);
        NSS2PAM_RC(rc, ignore_flags, PAM_SUCCESS);
        if (rc != PAM_SUCCESS) {
                if (rc != PAM_IGNORE)