Re: external script reply

2008-12-23 Thread tnt
>> @inner-tunnel file: >> post-auth{ >>#exec# if remove comment nothing change >>get-vlan >> } >> >> >> Why not send the Tunnel-Private-Group-Id in tunneled, accept packet? No idea. Since it's working in users file and not listed as a module try: post-auth { update reply {

Re: external script reply

2008-12-23 Thread Hegedus Gabor
Hegedus Gabor írta: t...@kalik.net írta: now I have just one output, this: Exec-Program output: Tunnel-Private-Group-Id = vlan20 no need "/n" That is OK. and the users file contains: DEFAULT auth-type = Accept Tunnel-Type = VLAN,#both are fix, send everytime, when acc

Re: external script reply

2008-12-20 Thread Hegedus Gabor
t...@kalik.net írta: now I have just one output, this: Exec-Program output: Tunnel-Private-Group-Id = vlan20 no need "/n" That is OK. and the users file contains: DEFAULT auth-type = Accept Tunnel-Type = VLAN,#both are fix, send everytime, when accepted Tunnel-Me

Re: external script reply

2008-12-20 Thread Hegedus Gabor
t...@kalik.net írta: What have to change, cos the Group-Id is not sent. Can you post the configuration of exec module that calls you script. There should be output = reply in it. Ivan Kalik Kalik Informatika ISP - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.

Re: external script reply

2008-12-18 Thread tnt
>now I have just one output, this: > >Exec-Program output: Tunnel-Private-Group-Id = vlan20 > >no need "/n" > That is OK. >and the users file contains: > >DEFAULT auth-type = Accept > Tunnel-Type = VLAN,#both are fix, send everytime, when accepted > Tunnel-Medium-Type = IEEE-802

Re: external script reply

2008-12-18 Thread tnt
>> That didn't come out well. It should look like the reply list in users >> file: >> >> reply1, >> reply2, >> reply3 >> >> >Where can I write it in the users file? *Like* in users file. >(I don't use user file, just ntlm_auth in mschap section.) >> Try adding ",\n" between attributes. >> >>

Re: external script reply

2008-12-18 Thread Hegedus Gabor
t...@kalik.net írta: Exec-Program output: Tunnel-Type = VLAN Tunnel-Medium-Type = IEEE-802 Tunnel-Private-Group-Id = vlan20 That didn't come out well. It should look like the reply list in users file: reply1, reply2, reply3 Try adding ",\n" between attributes. Ivan Kalik Kalik Informati

Re: external script reply

2008-12-18 Thread Hegedus Gabor
t...@kalik.net írta: That didn't come out well. It should look like the reply list in users file: reply1, reply2, reply3 Where can I write it in the users file? (I don't use user file, just ntlm_auth in mschap section.) Try adding ",\n" between attributes. my php code contains it : e

Re: external script reply

2008-12-17 Thread tnt
>Exec-Program output: Tunnel-Type = VLAN Tunnel-Medium-Type = IEEE-802 >Tunnel-Private-Group-Id = vlan20 That didn't come out well. It should look like the reply list in users file: reply1, reply2, reply3 Try adding ",\n" between attributes. Ivan Kalik Kalik Informatika ISP - List info/subscr

Re: external script reply

2008-12-17 Thread Hegedus Gabor
Hi, i don't know why but dosen't work, i post here my config and debug: --- when I try php-cli, my php file works fine: r...@ubuntu# ./getvlan.php Hege Tunnel-Type = VLAN Tunnel-Medium-Type = IEEE-802 Tunnel-Private-Group-Id = vlan20 -

Re: external script reply

2008-12-17 Thread tnt
>I use external php script to get informations from the ldap. >exec getdata { > program = .../sg.php %{User-Name} > ..?.. >} >post-auth { > getdata >} > >in the php script I do an ldap query with the argument, >and take the important data (three word) into variables. > >How can I take this 3

external script reply

2008-12-17 Thread Hegedus Gabor
Hi, I have a question, I use external php script to get informations from the ldap. exec getdata { program = .../sg.php %{User-Name} ..?.. } post-auth { getdata } in the php script I do an ldap query with the argument, and take the important data (three word) into variables. How can I tak