different ldap with different accept and reject

Hegedus Gabor hegedus.gabor at euroway.hu
Thu Feb 19 13:24:54 CET 2009


Hi all,

I have a question.

Now I use 3-4 different LDAP.

users file:
DEFAULT NAS-Port-Type == "Async", Auth-Type :="LDAP1", Autz-Type = "LDAP1"
        exec-program-wait ="test_1.php"
DEFAULT  NAS-Port-Type == "Wireless-802.11", Autz-Type := "LDAP2"
        exec-program-wait ="test_2.php"
DEFAULT NAS-Port-Type == "Virtual", Auth-Type :="LDAP3", Autz-Type = "LDAP3"
        exec-program-wait ="test_3.php" 
        #but it runs every times when matches.

I want run scripts depend on access or reject, not every time.

how can i configure it.

for example:
    LDAP1+reject    ->    1_reject.php
    LDAP1+accept  ->    1_accept.php
    LDAP2+reject    ->    2_reject.php
    LDAP2+accept   ->   2_accept.php
    LDAP3+reject    ->    3_reject.php
    LDAP3+accept   ->   3_accept.php


Thanks for help
bye Gabor




More information about the Freeradius-Users mailing list