How to apply logical OR in the auth. modul

Jevos, Peter Peter.Jevos at oriflame.com
Thu Jul 22 16:08:58 CEST 2010


Hi 

 

I have in the modules/ntlm_auth_vpn command:

 

exec ntlm_auth_vpn {

                wait = yes

               program = "/usr/bin/ntlm_auth --request-nt-key
--domain=%{mschap:NT-Domain} --username=%{mschap:User-Name}
--password=%{User-Password} --require-membership-of=domain1"

        }

 

Is it possible to add another command ( with different domain ) and to
add OR in order to  choose which one will pass ?

Something like this:

 

exec ntlm_auth_vpn {

                wait = yes

               program = "/usr/bin/ntlm_auth --request-nt-key
--domain=%{mschap:NT-Domain} --username=%{mschap:User-Name}
--password=%{User-Password} --require-membership-of=domain1"

                 OR

               program = "/usr/bin/ntlm_auth --request-nt-key
--domain=%{mschap:NT-Domain} --username=%{mschap:User-Name}
--password=%{User-Password} --require-membership-of=domain2"

        }

 

It means that auth-type ntml_auth_vpn is right if one of these command
will pass

 

Thank

 

pet

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100722/adf3d6a8/attachment.html>


More information about the Freeradius-Users mailing list