LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: gnap

在锐捷802.1x网络中使用xsupplicant的补丁进行认证源代码和教程 [原创]

[复制链接]
 楼主| 发表于 2006-4-10 12:57:47 | 显示全部楼层
哪位试试最新版的xsupplicant能否在FC5上编译(不是能够认证,能够编译安装即可)。
可以的话我直接将补丁做到最新的版本上。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-11 07:16:28 | 显示全部楼层
今天放出了1.2.1在FC5上不能编译的补丁,请大家测试。没有问题我将更新文档和FAQ。
补丁使用方法:
[PHP]
$tar xf xsupplicant-1.2.1.tar.gz
$tar jxf xsupplicant-1.2.1-rj-20060411.patch.tar.bz2
$patch -p3 < xsupplicant-1.2.1-rj-20060411.patch
$cd xsupplicant-1.2.1
$./configure
$make
$su
#make install
[/PHP]
注意patch的参数为3。

至于最新官方版本的补丁,看大家的需求吧!最近在忙其他的项目,可能没时间看新版的代码了。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-25 19:06:30 | 显示全部楼层
这个补丁似乎还是没有校外的测试反馈啊?
校内可是有不少用户了!~
哪个学校的朋友帮忙测试一下!
等通用之后,我将制作官方最新版本的补丁。
回复 支持 反对

使用道具 举报

发表于 2006-4-27 11:58:48 | 显示全部楼层
我想问一下,关于 私有802.1X的问题 ,你是怎么解决的?
回复 支持 反对

使用道具 举报

发表于 2006-5-5 15:57:52 | 显示全部楼层
能用在OpenBSD中吗
回去我来试试吧。
回复 支持 反对

使用道具 举报

发表于 2006-5-5 17:12:40 | 显示全部楼层
我在OpenBSD3.9中测试
在make时有如下错误提示:

In file included from eap.c:19:
/usr/include/netinet/in.h:136: error: syntax error before "in_addr_t"
/usr/include/netinet/in.h:213: error: syntax error before "u_int8_t"
/usr/include/netinet/in.h:217: error: syntax error before "int8_t"
/usr/include/netinet/in.h:232: error: syntax error before "int8_t"
In file included from /usr/include/netinet/in.h:553,
                 from eap.c:19:
/usr/include/netinet6/in6.h:118: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:140: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:145: error: syntax error before "u_int32_t"
/usr/include/netinet6/in6.h:663: error: syntax error before "struct"
/usr/include/netinet6/in6.h:667: error: syntax error before '*' token
/usr/include/netinet6/in6.h:669: error: syntax error before '*' token
/usr/include/netinet6/in6.h:670: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:671: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:673: error: syntax error before "inet6_rthdr_space"
In file included from eap.c:19:
/usr/include/netinet/in.h:561: error: syntax error before "int"
eap.c: In function `get_rg_ssid':
eap.c:571: warning: implicit declaration of function `Alog'
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1/src.
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1 (line 229 of Makefile).

请指教
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 07:20:42 | 显示全部楼层
Post by pzc
我想问一下,关于 私有802.1X的问题 ,你是怎么解决的?


私有的802.1x是在标准的报文中夹带了一些数据,把这些数据加上了就行了。
这也是本补丁能够工作的原理。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 07:52:28 | 显示全部楼层
Post by chenzhijin1980
我在OpenBSD3.9中测试
在make时有如下错误提示:

In file included from eap.c:19:
/usr/include/netinet/in.h:136: error: syntax error before "in_addr_t"
/usr/include/netinet/in.h:213: error: syntax error before "u_int8_t"
/usr/include/netinet/in.h:217: error: syntax error before "int8_t"
/usr/include/netinet/in.h:232: error: syntax error before "int8_t"
In file included from /usr/include/netinet/in.h:553,
                 from eap.c:19:
/usr/include/netinet6/in6.h:118: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:140: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:145: error: syntax error before "u_int32_t"
/usr/include/netinet6/in6.h:663: error: syntax error before "struct"
/usr/include/netinet6/in6.h:667: error: syntax error before '*' token
/usr/include/netinet6/in6.h:669: error: syntax error before '*' token
/usr/include/netinet6/in6.h:670: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:671: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:673: error: syntax error before "inet6_rthdr_space"
In file included from eap.c:19:
/usr/include/netinet/in.h:561: error: syntax error before "int"
eap.c: In function `get_rg_ssid':
eap.c:571: warning: implicit declaration of function `Alog'
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1/src.
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1 (line 229 of Makefile).

请指教

这些错误的原因应该是不同系统的数值类型的定义的头文件位置不同所致。我尝试更改了一些代码将使用u_int*_t的地方都改成了uint*_t。涉及的都是我自己的补丁的部分。你可以尝试一下,如果能够通过的话我将更新官方文档,如果不能够通过的话比较棘手。可能要请教一些对OpenBSD编程环境比较熟悉的朋友,必要时候采用新的官方版本。

使用方法和上次解决FC5时候的补丁的使用方法是一样的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-5-6 21:08:35 | 显示全部楼层
重新测试结果如下:
In file included from eap.c:19:
/usr/include/netinet/in.h:136: error: syntax error before "in_addr_t"
/usr/include/netinet/in.h:213: error: syntax error before "u_int8_t"
/usr/include/netinet/in.h:217: error: syntax error before "int8_t"
/usr/include/netinet/in.h:232: error: syntax error before "int8_t"
In file included from /usr/include/netinet/in.h:553,
                 from eap.c:19:
/usr/include/netinet6/in6.h:118: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:140: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:145: error: syntax error before "u_int32_t"
/usr/include/netinet6/in6.h:663: error: syntax error before "struct"
/usr/include/netinet6/in6.h:667: error: syntax error before '*' token
/usr/include/netinet6/in6.h:669: error: syntax error before '*' token
/usr/include/netinet6/in6.h:670: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:671: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:673: error: syntax error before "inet6_rthdr_space"
In file included from eap.c:19:
/usr/include/netinet/in.h:561: error: syntax error before "int"
eap.c: In function `get_rg_ssid':
eap.c:571: warning: implicit declaration of function `Alog'
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1/src.
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1 (line 229 of Makefile).

似乎还是老问题啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 21:36:19 | 显示全部楼层
Post by chenzhijin1980
重新测试结果如下:
In file included from eap.c:19:
/usr/include/netinet/in.h:136: error: syntax error before "in_addr_t"
/usr/include/netinet/in.h:213: error: syntax error before "u_int8_t"
/usr/include/netinet/in.h:217: error: syntax error before "int8_t"
/usr/include/netinet/in.h:232: error: syntax error before "int8_t"
In file included from /usr/include/netinet/in.h:553,
                 from eap.c:19:
/usr/include/netinet6/in6.h:118: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:140: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:145: error: syntax error before "u_int32_t"
/usr/include/netinet6/in6.h:663: error: syntax error before "struct"
/usr/include/netinet6/in6.h:667: error: syntax error before '*' token
/usr/include/netinet6/in6.h:669: error: syntax error before '*' token
/usr/include/netinet6/in6.h:670: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:671: error: syntax error before "u_int8_t"
/usr/include/netinet6/in6.h:673: error: syntax error before "inet6_rthdr_space"
In file included from eap.c:19:
/usr/include/netinet/in.h:561: error: syntax error before "int"
eap.c: In function `get_rg_ssid':
eap.c:571: warning: implicit declaration of function `Alog'
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1/src.
*** Error code 1

Stop in /tmp/xsupplicant-1.2.1 (line 229 of Makefile).

似乎还是老问题啊


你先不打补丁试试看,如果也不行的话说明是官方程序支持OpenBSD的问题。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表