LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: bewon

关于802.1x认证的问题

[复制链接]
发表于 2004-7-8 16:22:41 | 显示全部楼层
最初由 eyg 发表
你们哪里是不是实达捷锐的系统?以前听说实达的不是标准的802.1x
转一篇文章:
发信人: Binary (Buddy~!~), 信区: Linux
标  题: 不用了,偶已经成功了!!!
发信站: 武汉白云黄鹤站 (2003年12月07日13:17:49 星期天), 站内信件

哈哈
偶小改了下source,现在可以上了

http://bbs.whnet.edu.cn/cgi-bin/showfile?name=eapol.c


这个文件,替换xSupplicant的src下同名文件
make && make install

http://bbs.whnet.edu.cn/cgi-bin/ ... pplicant-0.6.tar.gz

这是原版的xsupplicant0.6

主要是参考了windows下面一位师兄写的代码,知道StarShit变态的地方
在认证包的末尾增加了63个字节的数据

感谢  Xsupplicant 的source,感谢那位师兄......
发表于 2004-7-10 13:35:23 | 显示全部楼层

我的rd9安装xsupplicant之后总说config error

[root@j xsupplicant]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking Operating System... Linux
checking for openssl (required package)... /usr/local/ssl
checking for libpcap (required package)... /usr/local
checking for libdnet (required package)... /usr/local
checking for eth_ntoa in -ldnet... yes
checking for OS specific tweaks... none
checking for wireless extensions... found for linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tools/Makefile
config.status: creating doc/Makefile
config.status: creating etc/Makefile
config.status: creating drivers/Makefile
config.status: linking ./src/wireless/linux/os_wireless_ext.c to src/os_wireless_ext.c
config.status: executing depfiles commands
[root@j xsupplicant]# make && make install
Making all in src
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/src'
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c -o eapcrypt.o `test -f 'auth_methods/tls/eapcrypt.c' || echo './'`auth_methods/tls/eapcrypt.c
auth_methods/tls/eapcrypt.c: In function `eapcrypt_PRF':
auth_methods/tls/eapcrypt.c:254: warning: assignment discards qualifiers from pointer target type
auth_methods/tls/eapcrypt.c:270: warning: assignment discards qualifiers from pointer target type
auth_methods/tls/eapcrypt.c: In function `eapcrypt_tls_return_data':
auth_methods/tls/eapcrypt.c:448: warning: implicit declaration of function `htonl'
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c `test -f 'configparse.c' || echo './'`configparse.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c `test -f 'dot1x_globals.c' || echo './'`dot1x_globals.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c -o os_generic.o `test -f 'frame_handlers/generic/os_generic.c' || echo './'`frame_handlers/generic/os_generic.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c -o eapmd5.o `test -f 'auth_methods/md5/eapmd5.c' || echo './'`auth_methods/md5/eapmd5.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c -o eapmschapv2.o `test -f 'auth_methods/mschapv2/eapmschapv2.c' || echo './'`auth_methods/mschapv2/eapmschapv2.c
auth_methods/mschapv2/eapmschapv2.c: In function `decode_error':
auth_methods/mschapv2/eapmschapv2.c:346: warning: assignment makes pointer from
integer without a cast
auth_methods/mschapv2/eapmschapv2.c:351: warning: assignment makes pointer from
integer without a cast
auth_methods/mschapv2/eapmschapv2.c:366: warning: assignment makes pointer from
integer without a cast
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c -o desport.o `test -f 'auth_methods/mschapv2/desport.c' || echo './'`auth_methods/mschapv2/desport.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c -o deskey.o `test -f 'auth_methods/mschapv2/deskey.c' || echo './'`auth_methods/mschapv2/deskey.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c `test -f 'logging.c' || echo './'`logging.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c `test -f 'os_wireless_ext.c' || echo './'`os_wireless_ext.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c -o auth_tools.o `test -f 'auth_methods/auth_tools.c' || echo './'`auth_methods/auth_tools.c
bison -y -d   `test -f 'config_grammar.y' || echo './'`config_grammar.y
sed '/^#/ s|y\.tab\.c|config_grammar.c|' y.tab.c >config_grammar.c
rm -f y.tab.c
if test -f y.tab.h; then \
  to=`echo "config_grammar_H" | sed \
                -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
                -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \
  sed "/^#/ s/Y_TAB_H/$to/g" y.tab.h >config_grammar.ht; \
  rm -f y.tab.h; \
  if cmp -s config_grammar.ht config_grammar.h; then \
    rm -f config_grammar.ht ;\
  else \
    mv config_grammar.ht config_grammar.h; \
  fi; \
fi
if test -f y.output; then \
  mv y.output config_grammar.output; \
fi
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c `test -f 'config_grammar.c' || echo './'`config_grammar.c
flex   `test -f config_lex.l || echo './'`config_lex.l
sed '/^#/ s|lex.yy\.c|config_lex.c|' lex.yy.c >config_lex.c
rm -f lex.yy.c
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xsupplicant\" -DVERSION=\"cvs-current\" -DYYTEXT_POINTER=1 -DHAVE_OPENSSL=1 -DHAVE_LIBDNET=1   -I. -I. -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include    -g -O2 -Wall  -c `test -f 'config_lex.c' || echo './'`config_lex.c
config_lex.c:1200: warning: `yyunput' defined but not used
gcc  -g -O2 -Wall    -o xsupplicant  1xdriver.o 1xdaemon.o eapol.o eaptls.o eap.o userconf.o eapcrypt.o configparse.o dot1x_globals.o os_generic.o eapmd5.o eapmschapv2.o desport.o deskey.o logging.o os_wireless_ext.o auth_tools.o config_grammar.o config_lex.o -L/usr/local/lib -lpcap -L/usr/local/lib -ldnet -lfl -L/usr/local/ssl/lib  -lcrypto -lssl -ldnet
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/src'
Making all in etc
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/etc'
Making all in tools
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/tools'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/tools'
Making all in doc
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/doc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/doc'
Making all in drivers
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/drivers'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/drivers'
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant'
Making install in src
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/src'
make[2]: Entering directory `/mytools/xsupplicant-all/xsupplicant/src'
/bin/sh ../mkinstalldirs /usr/local/bin
  /usr/bin/install -c xsupplicant /usr/local/bin/xsupplicant
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/src'
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/src'
Making install in etc
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/etc'
make[2]: Entering directory `/mytools/xsupplicant-all/xsupplicant/etc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/etc'
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/etc'
Making install in tools
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/tools'
make[2]: Entering directory `/mytools/xsupplicant-all/xsupplicant/tools'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/tools'
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/tools'
Making install in doc
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/doc'
make[2]: Entering directory `/mytools/xsupplicant-all/xsupplicant/doc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/doc'
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/doc'
Making install in drivers
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant/drivers'
make[2]: Entering directory `/mytools/xsupplicant-all/xsupplicant/drivers'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/drivers'
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant/drivers'
make[1]: Entering directory `/mytools/xsupplicant-all/xsupplicant'
make[2]: Entering directory `/mytools/xsupplicant-all/xsupplicant'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/mytools/xsupplicant-all/xsupplicant'
make[1]: Leaving directory `/mytools/xsupplicant-all/xsupplicant'
[root@j xsupplicant]#



[root@j lib]# xsupplicant
Error (null), 10: parse error
A config parse error has occured.
Make sure you are specifying your profile name (with -n) or that a profile named "default" exists.
[root@j lib]#
整个安装过程完全按照说明作的。这是什么问题呢?
看来实达认证802.1x真是麻烦,可不可以装个模拟器来运行winxp版的认证程序呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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