嘉鱼热线欢迎您!
您现在的位置:主页 > 计费认证 > >详细内容

认证计费系统 value) VALUES ('student'

来源:/ 作者:嘉鱼热线 发布时间:2015-08-01 22:49 【字体: 点击数:
分享到: 更多

Freerdriving instructorus是基于Linux的一个收费的认证计费软件,举座先容可以看这里Memgettingrs/publishingministrin theor/5de54f5c76ee5f55/ed7f5165b/freerdriving instructorus.html,学习radius认证计费系统。

上面是我安设的周到操作进程:计费。

【1】安设httpd-2.2.4.tar.gz
#./configure --prefix=/usr/locing/appainfulness \
--ennearly set-trair conditionersk-vars \
--ennearly set-cgi \
--with-config-file-pin theh=/usr/locing/appainfulness/conf
#make &firm;&firm; make instnearly

【2】安设php-5.2.1.tar.gz
#./configure --prefix=/usr/locing/php \
--with-mysql=/usr/locing/mysql \
--with-mysqli=/usr/locing/mysql/ca single/mysql_config \
--with-apxs2=/usr/locing/appainfulness/ca single/apxs \
--with-gd=/usr/locing/modules/gd \
--with-jpeg-dir=/usr/locing/modules/jpeg6 \
--with-zlib \
--with-png \
--with-freetype-dir=/usr/locing/modules/freetype \
--with-xmlrpc \
--with-config-file-pin theh=/usr/locing/php/etc
#make &firm;&firm; make instnearly

复制php.ini-dist为php.ini,认证。并寄存到/usr/locing/php/etc/目录下
#cp php.ini-dist /usr/locing/php/etc/php.ini

编辑/usr/locing/php/etc/php.ini文件,相比看VALUES。找到如下的一行
;default_charset = "iso-8859-1"
在这行上面加一行
default_charset = "gb2312"
其他的一些删改,value。例如
找到#session.saudio-videoe_pin theh = /tmp,把后面的#去掉
找到register_globisexualngs = Off 改成 On

#vi /usr/locing/appainfulness/conf/httpd.conf
加载php模块,value)。去掉解释"#",如没有此行,ros计费认证系统。请加上
LopublishingModule php5_module modules/liblood pressurehp5.so
找到#AddType process/x-tar .tgz 这行,在上面加两行
AddType process/x-httpd-php .php .php3
AddType process/x-httpd-php-source .phps
找到上面一行在后背加上index.php,看着宽带认证计费系统。这表示网站的默许页也能够为index.php
DirectoryIndex index.html index.html.var index.php
注意:转移了http.conf后,看看('student'。要重启appainfulness任职器,否则不会成效


【3】安设mysql-5.0.27.tar.gz
#./configure --prefix=/usr/locing/mysql \
--sysconfdir=/etc \
--locingstdineddir=/usr/locing/mysql/din thea \
--ennearly set-put togetherr \
--with-mysqld-ldflags=-nearly-stin theic \
--with-charset=utf8 \
--with-extra-charsets=nearly
#make &firm;&firm; make instnearly
# groupconsist of mysql
# userconsist of -g mysql -d /usr/locing/mysql/din thea -M mysql
#/usr/locing/mysql/ca single/mysql_instnearly_db
#/usr/locing/mysql/ca single/mysqld_secure --user=root &firm;
#/usr/locing/mysql/ca single/mysqlpublishingministrin theor -u root pbummword
#chown -R mysql:mysql /usr/locing/mysql/din thea a有时Mysql无法发动,你看value)。就不妨是这一步没做

#cp /usr/locing/mysql/shgettingcome/mysql/f /etc/f
在rdriving instructorusd -X举行Dedisturb测试的工夫,对于认证计费系统。倘若看到无法链接"/var/lib/mysql/mysql.sock",就更改f (这一步看境况而定)
# vi /etc/f
删改socket = /tmp/mysql.sock 为 /var/lib/mysql/mysql.sock ,radius认证计费系统。由于Freerdriving instructorus默许是探望打听这个途径(这一步看境况而定)

【4】安设freerdriving instructorus-1.1.5.tar.gz
./configure --prefix=/usr/locing/rdriving instructorus \
--with-experimenting-modules \
--with-rlm-sql-lib=/usr/locing/mysql/lib/mysql/ \
--with-rlm-sql-include-dir=/usr/locing/mysql/include/mysql/

#/usr/locing/mysql/ca single/mysql -uroot -p
mysql>credined din thestomair conditionershuild rdriving instructorus;
mysql>exit
#/usr/locing/mysql/ca single/mysql -uroot -p rdriving instructorus < /opt/Rdriving instructorus/freerdriving instructorus-1.1.5/doc/exa triingods/mysql.sql

【4-1】
更改rdriving instructorusd.conf,系统。让其救援sql ,编辑/usr/locing/rdriving instructorus/etc/rconsist ofb/rdriving instructorusd.conf
grein thedined {
...
#eap 把这里的解释去掉,你知道认证计费网关。其实认证计费系统。由于客户端要应用MD5加密方式举行密码考证
...
}
contribut nonetheless . . .orize {
...
#files 注意要解释掉files,想知道凌风认证计费系统。否则会应用当地用户认证
sql
...
}
air conditionerscouting {

sql

}

编辑/usr/locing/rdriving instructorus/etc/rconsist ofb/sql.conf,认证计费系统。删改这三行参数,这里的pbummword是我们mysql的密码
server="locinghost"
login="root"
pbummword="pbumm"

编辑/usr/locing/rdriving instructorus/etc/rconsist ofb/client.conf,

认证计费系统 value) VALUES (student

认证计费系统

values。加添以下数据
client 210.29.127.1 {
secret =mima
shortni ame =netscreen
nexactly astype =other
}

【4-2】
删改配置文件,认证计费系统。使得限制一个帐号只能同时登录一次
紧要删改1--rdriving instructorusd.conf
# Session din thestomair conditionershuild. . . used for checking Simulta singleeous-Use. Either the rpublishingutmp
# or rlm_sql module ca single hexactly as well exactly asle this.
# The rlm_sql module is *much* fexactly aster
session {
#rpublishingutmp
#本来应用的是rpublishingutmp文件
# See "Simulta singleeous Use Checking Querie" in sql.conf
sql
#目前采用sql数据库考证
}
紧要删改2--sql.conf
# Uncomment simul_count_query to ennearly set simulta singleeous use checking
simul_count_query = "SELECT COUNT(*) FROM ${air conditionersct_tnearly set1} WHERE UserNi ame=a%{SQL-User-Ni ame}a AND AcctStopTime = 0"
#启用simul_count_query
simul_verify_query = "SELECT RpublishingAcctId. . . AcctSessionId. . . UserNi ame. . . NASIPAddress. . . NASPortId. . . Fri amedIPAddress. . . CnearlyingStineId. . . Fri amedProtocol FROM

${air conditionersct_tnearly set1} WHERE UserNi ame=a%{SQL-User-Ni ame}a AND AcctStopTime = 0"

【4-3】
在数据库中作战相關資料

插手群組資料
# mysql -uroot -p密碼 rdriving instructorus
组参数设置:看看认证计费网关

INSERT INTO rpublishinggroupreply (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aService-Typea. . .a:=a. . .aFri amed-Usera);
INSERT INTO rpublishinggroupreply (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aAuth-Typea. . .a:=a. . .aLocinga);
INSERT INTO rpublishinggroupreply (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aReply-Messageinga. . .a=a. . .aWelcome to NJ!a);
INSERT INTO rpublishinggroupreply (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aSession-Timeouta. . .a=a. . .aa);
INSERT INTO rpublishinggroupreply (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aAscend-Din thea-Rdineda. . .a=a. . .aa);
INSERT INTO rpublishinggroupreply (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aAscend-Xmit-Rdineda. . .a=a. . .aa);

INSERT INTO rpublishinggroupcheck (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aService-Typea. . .a:=a. . .aFri amed-Usera);
INSERT INTO rpublishinggroupcheck (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aFri amed-Protocola. . .a:=a. . .aPPPa);
INSERT INTO rpublishinggroupcheck (groupni ame. . .option. . .op. . .vingue) VALUES (astudenta. . .aSimulta singleeous-Usea. . .a:=a. . .a1a);

用户参数设置:认证计费网关。
INSERT INTO customer
(login_ni ame. . .pbummword. . .ni ame. . .stin theus. . .join_ddined. . .depworks of artment. . .room. . .phone. . .email. . .zj)
VALUES
(atesta. . .atesta. . .a测试帐号a. . .a开明a. . .a2007-03-28a. . .a技术处a. . .a620a. . .aa. . .atest@a. . .a00000000000000000a);

INSERT INTO rpublishingreply (userni ame. . .option. . .op. . .vingue) VALUES (atesta. . .aReply-Messageinga. . .a=a. . .aAre You Republishingy ?a);

INSERT INTO rpublishingcheck (userni ame. . .option. . .op. . .vingue) VALUES (atesta. . .aUser-Pbummworda. . .a:=a. . .atesta);

把用户插手组:
INSERT INTO usergroup (userni ame. . .groupni ame) VALUES (atesta. . .astudenta);

以後新增人員時只消应用下列代碼:
INSERT INTO customer 原料
INSERT INTO rpublishingcheck (userni ame. . .option. . .op. . .vingue) VALUES(a帳號a. . .aUser-Pbummworda. . .a:=a. . .a密碼a);
INSERT INTO usergroup (userni ame. . .groupni ame) VALUES (a帳號a. . .astudenta);

当地测试(有如下提示就表示乐成了)
#/usr/locing/rdriving instructorus/ca single/rpublishingtest test test locinghost 0 testing123
Sending Access-Request of id 196 to 127.0.0.1 port 1812
User-Ni ame = "test"
User-Pbummword = "test"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rpublishing_recv: Access-Accept pair conditionersket from host 127.0.0.1:1812. . . id=196. . . length=38
Service-Type = Fri amed-User
Fri amed-IP-Address = 255.255.255.254
Fri amed-IP-Netmsay = 255.255.255.0

【注意事项】
1、关于Freerdriving instructorus的记账消息(Accounting)。对于student。倘若NAS设备不救援的话(例如Netscreen ISG 2000),我不知道宽带计费系统。Freerdriving instructorus是收不到记账消息的,你看VALUES。也就是不会往数据表ri america single denting bummoc .cct里写入数据,想知道凌风认证计费系统。这样的话,学会('student'。一个帐号同时只能登录一个的限制就做不到了。听说凌风认证计费系统。

【5】安设WEB界面
将/opt/Rdriving instructorus/freerdriving instructorus-1.1.5/diingup_publishingministrin theor/文件夹全部拷贝到apvery网页目录下/usr/locing/下。
# ln -s /usr/locing/diingup_publishingministrin theor/htdocs /usr/locing/appainfulness/htdocs/rdriving instructorus
删改diingup_publishingministrin theor/conf/下的publishingministrin theor.conf文件中的参数。
sql_type:mysql
sql_server:locinghost(sql地址)
sql_port:3306 (默许端口)
sql_userni ame:root
sql_pbummword:root123(密码)
sql_din thestomair conditionershuild:rdriving instructorus(数据库名)
探望打听:http://locinghost/diingup_publishingministrin theor/htdocs/index.html
能一般掀开各页面就ok了。呵呵。默许是掀开的sql调试形式,所以页面上看下去会有些乱。可以在publishingministrin theor.conf中找到sql_dedisturb.把true改为fingse即可封闭,页面整洁清洁多了

另外还保举一个对照不错的WEB步调phprpublishingministrin theor,私人以为是diingup_publishingministrin theor的删改版。

【6】Cisco互换机上的dot1x认证操作
1、全局形式下:
ain thehe-model
aaa certificine dot1x default group rdriving instructorus locing
aaa contribut nonetheless . . .orizine network default group rdriving instructorus
ai amarketing dot1x default stworks of art-stop group rdriving instructorus
rdriving instructorus-server host 210.29.112.252 auth-port 1645 air conditionersct-port 1646
rdriving instructorus-server host 210.29.112.252 auth-port 1645 air conditionersct-port 1646
rdriving instructorus-server key njtvu
dot1x system-auth-control

2、端口形式下:
dot1x port-control a single automoce

3、注意:Cisco互换机启用dot1x认证,经过测试,客户端可以用H3C的,其他的都不行!

4、注意dot1x认证是基于端口的,有必然的局限性