if (pwcheck == always && def_authenticate)
SET(validated, FLAG_CHECK_USER);
else if (pwcheck == never || nopass == TRUE)
+ /* XXX - breaks NOPASSWD output in -l mode */
def_authenticate = FALSE;
return(validated);
}
int nfound = 0;
tq_foreach_fwd(&us->privileges, priv) {
- tags.noexec = def_noexec;
- tags.setenv = def_setenv;
- tags.nopasswd = !def_authenticate;
+ tags.noexec = UNSPEC;
+ tags.setenv = UNSPEC;
+ tags.nopasswd = UNSPEC;
lbuf_append(lbuf, " ", NULL);
tq_foreach_fwd(&priv->cmndlist, cs) {
if (cs != tq_first(&priv->cmndlist))
int nfound = 0;
tq_foreach_fwd(&us->privileges, priv) {
- tags.noexec = def_noexec;
- tags.setenv = def_setenv;
- tags.nopasswd = !def_authenticate;
+ tags.noexec = UNSPEC;
+ tags.setenv = UNSPEC;
+ tags.nopasswd = UNSPEC;
lbuf_print(lbuf); /* force a newline */
lbuf_append(lbuf, "Sudoers entry:", NULL);
lbuf_print(lbuf);