diff options
author | ivan <ivan> | 2002-03-22 18:56:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-03-22 18:56:33 +0000 |
commit | 20bb426a02c0ea54d8feaea7c5da51735ab70293 (patch) | |
tree | 28282f7c74f9f13ba831df23b26465d9b7b1b6e2 /httemplate | |
parent | b159f42fa3f48cc2ca3b43773e7661e17d2fb072 (diff) |
RADIUS groups on the way!
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/docs/schema.html | 6 | ||||
-rw-r--r-- | httemplate/docs/upgrade8.html | 8 | ||||
-rwxr-xr-x | httemplate/edit/part_svc.cgi | 4 | ||||
-rwxr-xr-x | httemplate/edit/svc_acct.cgi | 4 | ||||
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 3 |
5 files changed, 25 insertions, 0 deletions
diff --git a/httemplate/docs/schema.html b/httemplate/docs/schema.html index b828213ff..192f56ba9 100644 --- a/httemplate/docs/schema.html +++ b/httemplate/docs/schema.html @@ -383,5 +383,11 @@ <li>jobnum - <a href="#queue">job</a> <li>arg - argument </ul> + <li><a name="radius_usergroup" href="man/FS/radius_usergroup.html">radius_usergroup</a> - Link users to RADIUS groups. + <ul> + <li>usergroupnum - primary key + <li>svcnum - <a href="#svc_acct">account</a> + <li>groupname + </ul> </ul> </body> diff --git a/httemplate/docs/upgrade8.html b/httemplate/docs/upgrade8.html index e52b69ad3..440024de2 100644 --- a/httemplate/docs/upgrade8.html +++ b/httemplate/docs/upgrade8.html @@ -171,6 +171,14 @@ CREATE TABLE part_export_option ( CREATE INDEX part_export_option1 ON part_export_option ( exportnum ); CREATE INDEX part_export_option2 ON part_export_option ( optionname ); +CREATE TABLE radius_usergroup ( + usergroupnum int primary key, + svcnum int not null, + groupname varchar(80) not null +); +CREATE INDEX radius_usergroup1 ON radius_usergroup ( svcnum ); +CREATE INDEX radius_usergroup2 ON radius_usergroup ( groupname ); + ALTER TABLE svc_acct ADD domsvc integer NOT NULL; ALTER TABLE svc_domain ADD catchall integer NULL; ALTER TABLE cust_main ADD referral_custnum integer NULL; diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index 3292a9b9b..b1bb7f3d3 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -86,6 +86,10 @@ my %defs = ( select_key => 'svcnum', select_label => 'domain', }, + 'radius_groups' => { + desc =>'ICRADIUS/FreeRADIUS groups', + type =>'radius_usergroup_selector', + }, }, 'svc_domain' => { 'domain' => 'Domain', diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index d147a1683..6846b5c93 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -239,6 +239,10 @@ foreach my $r ( grep { /^r(adius|[cr])_/ } fields('svc_acct') ) { } } +print '<TR><TD ALIGN="right">RADIUS groups</TD><TD>'. + &FS::svc_acct::radius_usergroup_selector( [ $svc_acct->radius_groups ] ). + '</TD></TR>'; + #submit print qq!</TABLE><BR><INPUT TYPE="submit" VALUE="Submit">!; diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index d1c61576d..b779e8774 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -129,6 +129,9 @@ if ($svc_acct->slipip) { print "<TR><TH COLSPAN=2>(No SLIP/PPP account)</TH></TR>"; } +print '<TR><TD ALIGN="right">RADIUS groups</TD><TD BGCOLOR="#ffffff">'. + join('<BR>', $svc_acct->radius_groups). '</TD></TR>'; + print "</TABLE></TD></TR></TABLE>". '<BR>'. joblisting({'svcnum'=>$svcnum}, 1). "</BODY></HTML>"; |