need a small help urgently

Fajar A. Nugraha list at fajar.net
Mon Apr 20 15:39:17 CEST 2015


On Mon, Apr 20, 2015 at 7:48 PM, ademaiasantos at gmail.com
<ademaiasantos at gmail.com> wrote:
> for example first server send user1 and second server send user2, i want
> they connect both,


Like Alan said, radius does not work like that.

One way to solve your problem would probably be using pam-script:
http://manpages.ubuntu.com/manpages/trusty/man7/pam-script.7.html
https://github.com/jeroennijhof/pam_script/blob/master/etc/README.examples

Basically it passes some environment variable, including PAM_USER and
PAM_AUTHTOK (which contains the password). You can CREATE a script
that acts on those input and do whatever-you-want with it. When setup
correctly, a user will be able to login when the script returns zero
error code, and will be rejected if the script returns non-zero error
code. The script can use any programming languange you want (e.g.
bash, perl, php, whatever) as long as it is executable, can read
environment variables, and can return return-code of your choice.

More details of pam-script is beyond the scope of this list, and if
you have problems you might have better luck contacting the author.

There are other ways, of course, but pam-script would probably be the
simplest one.

-- 
Fajar


More information about the Freeradius-Users mailing list