Hi I have all user in a mysql database. This part works well. Now I like to be able to assign all users which are not defined in the database some special attributes for their session (goal is to bring them onto a captive portal). I have played with the DEFAULT entries, but they get assigned to all users as it looks like. Can someone point me in the right direction please ? Regards Matthias -- Matthias Cramer / mc322-ripe Senior Network & Security Engineer iWay AG Phone +41 43 500 1111 Josefstrasse 225 Fax +41 44 271 3535 CH-8005 Zürich http://www.iway.ch/ GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E 3959 B62F DF1C 2D20 8250
Now I like to be able to assign all users which are not defined in the database some special attributes for their session (goal is to bring them onto a captive portal).
You *don't* authenticate the user and the portal captures him and places him in a happy place for unauthenticated users. Ivan Kalik Kalik Informatika ISP
Ivan Kalik wrote:
Now I like to be able to assign all users which are not defined in the database some special attributes for their session (goal is to bring them onto a captive portal).
You *don't* authenticate the user and the portal captures him and places him in a happy place for unauthenticated users.
That sounds nice. But he still needs some attributes and the NAS has to think that he is authenticated... Any idea ... I'm talking about DSL users, not WiFi. Regards Matthias -- Matthias Cramer / mc322-ripe Senior Network & Security Engineer iWay AG Phone +41 43 500 1111 Josefstrasse 225 Fax +41 44 271 3535 CH-8005 Zürich http://www.iway.ch/ GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E 3959 B62F DF1C 2D20 8250
Matthias Cramer wrote:
Hi
I have all user in a mysql database. This part works well.
Now I like to be able to assign all users which are not defined in the database some special attributes for their session (goal is to bring them onto a captive portal).
I have played with the DEFAULT entries, but they get assigned to all users as it looks like.
Can someone point me in the right direction please ?
Regards
Matthias
I would try to set Hint in radcheck, check for the hint in either the users file, unlang or the policy and set the attributes there. Be aware that using cisco-avpair to control vrf and ip address requires that vrf be set before ip address are assigned, and you would have to strip out any offending attributes first, so unlang or policy language could be better for you. You might also want to reverse the order sql and files modules in the authorize section.
participants (3)
-
Ivan Kalik -
Joe Maimon -
Matthias Cramer