Hi Axel,
you can, albeit somewhat limited, control module behaviour using
scripts. E.g., to skip a particular module for a given user (and try
the next module in the hierarchy):
mavis module = external {
script in = { if ($USER == "johndoe") skip }
setenv LDAP_HOSTS = "dc01"
forgot one thing: If you have the same user ids on both AD servers you
should add
script out = { if ($RESULT == ACK) set $PASSWORD_ONESHOT = 1 }
to the first module declaration to keep the daemon from caching
passwords.
Cheers,
Marc
Hi Axel,
I can't seem to reproduce that issue.
Chances are that the tac_plus binary is using the old libraries. You
did recompile and reinstall?
Cheers,
Marc
Hi Axel,
forgot one thing: If you have the same user ids on both AD servers you
should add
script out = { if ($RESULT == ACK) set $PASSWORD_ONESHOT = 1 }
to the first module declaration to keep the daemon from caching
passwords.
Axel
Cheers,
Marc
On 7 Aug., 08:35, Marc Huber <marc.j.hu...@googlemail.com> wrote:
> Hi Axel,
>
> On 6 Aug., 23:06, Axel Eble <axel.e...@gmail.com> wrote:
>
> > is it possible to do this for a given client system? something like:
>
> > script in = { if ($NAS == "10.1.1.1") skip }
>
> you'll need a small patch for that:
>
> *** tac_plus/mavis.c 2010/05/13 07:32:27 1.63
> --- tac_plus/mavis.c 2010/08/07 06:15:23
> ***************
> *** 123,128 ****
> --- 123,129 ----
> av_set(avc, AV_A_USER, session->username);
> av_setf(avc, AV_A_TIMESTAMP, "%d", session->session_id);
> av_set(avc, AV_A_TACTYPE, type);
> + av_set(avc, AV_A_SERVERIP, session->ctx->NAS_name);
> if (session->nac_address_valid)
> av_set(avc, AV_A_IPADDR, session->NAC_address);
>
> That should be sufficient to make
>
> script in = { if ($SERVERIP == "10.1.1.1") skip }
>
> work.
>
> Cheers,
>
> Marc
--
You received this message because you are subscribed to the Google Groups "Event-Driven Servers" group.
To post to this group, send email to event-driv...@googlegroups.com.
To unsubscribe from this group, send email to event-driven-ser...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/event-driven-servers?hl=en.
Hi Axel,
on second thought, modifying mavistest.c turns out easy enough. The
patch below permits setting attribute-value pairs on the command line:
[…]
setenv …setenv …setenv …
}setenv …setenv …setenv …
Axel
Hi Axel,
my bad ... here's a fix:
On 20 Aug., 21:30, Axel Eble <axel.e...@gmail.com> wrote:
> Setting the attribute works nicely, thanks. However, same effect - it looks
> as if it doesn't use the second mavis module at all.