freeradius

在Xen Debian 上安裝配置Freeradius2 + Mysql + Daloradi...

梦想的初衷 提交于 2019-12-05 10:52:32
安装Debian #apt-get update #apt-get -y upgrade ============================================================================ 提醒: 以上三行, 只要連上Internet正常, 運行時什麼錯誤都不要管,不斷重複執行就可以. 可能是互相依賴的關係吧, 偶不是Linux高手, 試過這樣子搞定. ============================================================================ 步骤一:安装MySQL并且修改MySQL root密码 #apt-get install mysql-server 中间要求输入密码 步骤二:安装Free RADIUS + Free RADIUS MySQL套件 # sudo apt-get install freeradius # sudo apt-get install freeradius-mysql 在除錯模式運行Freeradius #freeradius -X 應該看到類似以下的東西 ============================================================ Listening on authentication

centos6.5 x86_64下安装freeradius

一笑奈何 提交于 2019-12-04 13:31:00
平台:centos 6.5 x86_64最小化安装 1.vi /etc/selinux/config (linode里面centos 6.5默认已关闭/etc/selinux/config) SELINUX=disabled reboot your host sestatus -v查看状态 2.wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm 3.yum -y install mc wget crontabs vixie-cron make gcc libtool-ltdl curl mysql-server mysql-devel net-snmp net-snmp-utils php php-mysql php-mcrypt php-gd php-snmp php-process ntp sendmail sendmail-cf alpine mutt 4.yum install glibc.i686 libgcc_s.so.1 5.wget http://www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86-64.tar.gz tar

FreeRADIUS authentication through Azure Active Directory

天涯浪子 提交于 2019-12-04 05:37:12
I have just configured FreeRadius, but I would like to authenticate users which are in an Azure AD. I know it's possible to link FreeRADIUS with an Active Directory, but I can't find anything about Azure AD. Does anyone knows if it's possible? A possible solution could be to create an AD locally synchronized with the Azure AD, but I would like to do it directly. I did it with a little difficulty. John Robert Mendoza is correct but there are a few gotchas. Here are my steps: Add AADDS and LDAP to AAD https://docs.microsoft.com/en-us/azure/active-directory-domain-services/active-directory-ds

Freeradius users operators

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I faced with one issue, which I can't understand in Freeradius users file. My goal is just authenticate external user "shad" with password "test". I added line in /etc/raddb/users the following line: shad Cleartext-Password == "test" Result was Reject. If I change "==" operator to ":=" Authentication is successful. So my question is the following: Why I can't use "==" operator while FreeRadius documentation tells: "Attribute == Value As a check item, it matches if the named attribute is present in the request, AND has the given value." And

radius挑战认证

匿名 (未验证) 提交于 2019-12-02 23:57:01
做基于radius的双因子认证,但未找到一个方便测试的radius服务器,网上找了freeradius,折腾了很久没有搞定,想了想是否可以自己写一个,只要有一个radius的雏形,发一个challenge应该是比较简单的。 pyrad 找到了pyrad,这个是提供一个radius的基本操作的库,提供了客户端和服务端的库,试了一下服务端,windows上起不来,于是只能从头写。 基本思路是自己创建一个udp socket,进行监听,收到报文后,使用pyrad进行解析,然后做身份验证的处理,再用pyrad创建回应消息。 代码如下: from pyrad import * import socket import pyrad . host import random BUFSIZE = 1024 KEY = b "testing123" CHALLENGE = "test2" class RadiusServer ( pyrad . host . Host ): def __init__ ( self ): dict = pyrad . dictionary . Dictionary ( "dictionary.rfc2865" ) #从freeradius中搞一个通用的字典使用 pyrad . host . Host . __init__ ( self , dict = dict )

mysql query of a date, between two date fields

浪子不回头ぞ 提交于 2019-12-01 21:31:46
问题 I'm using MySql 5.5. I need to find a userid on a date with a particular ip address. The fields are userid, ipaddress, startdate, enddate. So for instance I am looking for a userid with ip address 192.168.1.1 on Sep 12 2011. the query would be similar select * from database where ipaddress='192.168.1.1' and 2011-12-09 is in(startdate and enddate); Any help to pointing out this logic flaw is welcome. Thank you. 回答1: It's not very clear if you want: '2011-12-09' BETWEEN startdate AND enddate or

Freeradius users operators

China☆狼群 提交于 2019-11-27 15:19:45
问题 I faced with one issue, which I can't understand in Freeradius users file. My goal is just authenticate external user "shad" with password "test". I added line in /etc/raddb/users the following line: shad Cleartext-Password == "test" Result was Reject. If I change "==" operator to ":=" Authentication is successful. So my question is the following: Why I can't use "==" operator while FreeRadius documentation tells: "Attribute == Value As a check item, it matches if the named attribute is

搭建freeradius+daloradius作为认证服务器

走远了吗. 提交于 2019-11-26 01:25:17
1.目的背景 为了满足设备进行3A认证,提高安全性,所以搭建一套radius服务器,并配合daloradius作为前端展示配置。 2.配置内容 2.1.所需系统及组件 操作系统:CentOS 7.0 x86_64 ,带gnome桌面,配置地址为172.31.101.1 数据库:mariadb v5.5.56 httpd:Server version: Apache/2.4.6 (CentOS) php: v2.4.0 FreeRADIUS 3.0 所需其他组件 php php-mysql php-gd php-pear-DB 通过yum安装即可。 2.2.参考文档 freeradius安装 http://blog.csdn.net/cluniquecui/article/details/42490423 使用daloRADIUS Web程序管理FreeRADIUS服务 http://wzlinux.blog.51cto.com/8021085/1736744 3.freeredius安装 3.1.安装FreeRADIUS 3.0 服务器程序 yum install freeradius 3.2.安装FreeRADIUS工具包(freeradius-utils) yum install freeradius-utils 3.3.FreeRADIUS 3.0的测试 3.3.1