26 Jul
2010
26 Jul
'10
3:50 a.m.
Madsen.Jan JMD wrote:
Hmm okay.
I got 2 clients, client1 and client2 I want client1 to use my passwd module (kmdov3) to do authorization And I want client2 to use the unix module for authorization.
That's clear enough.
In my users file I have configured the one client I want to ONLY use my passwd module
The "users" file doesn't control the modules in the "authorize" section. See "man unlang"
But how to I tell that client1 is going to use my passwd configured authorization ? This was where I thougth I clould use the Auth-Type attribute, in a simelar way I used with client2.
You control that in the "authorize" section. authorize { ... if (Client-IP-Address == 1.2.3.4) { kmdov3 } elsif (Client-IP-Address == 3.4.5.6) { unix } ... }