FR 1.0.2 + Mysql
Hi all, I have a problem with FR 1.0.2 and Mysql, I do not arrive has to compile (with the snapshot no problem) System : Debian Sarge with libmysqlclient14-dev and mysql-server installed I have test with ./configure --sysconfdir=/etc --disable-shared or ./configure --sysconfdir=/etc --with-rlm-mysql-include-dir=/usr/include/mysql --with-rlm-mysql-lib-dir=/usr/include/mysql --disable-shared And with make make[7]: Entering directory `/root/freeradius-1.0.2/src/modules/rlm_sql' Making static in drivers... make[8]: Entering directory `/root/freeradius-1.0.2/src/modules/rlm_sql/drivers' /usr/bin/make -w WHAT_TO_MAKE=static common make[9]: Entering directory `/root/freeradius-1.0.2/src/modules/rlm_sql/drivers' Making static in rlm_sql_iodbc... make[10]: Entering directory `/root/freeradius-1.0.2/src/modules/rlm_sql/drivers/rlm_sql_iodbc' make[10]: Rien à faire pour « static ». make[10]: Leaving directory `/root/freeradius-1.0.2/src/modules/rlm_sql/drivers/rlm_sql_iodbc' Making static in rlm_sql_mysql... make[10]: Entering directory `/root/freeradius-1.0.2/src/modules/rlm_sql/drivers/rlm_sql_mysql' gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG -I../.. -I../../../../include -I/root/freeradius-1.0.2/libltdl -c sql_mysql.c -o sql_mysql.o sql_mysql.c:39:20: errmsg.h : Aucun fichier ou répertoire de ce type sql_mysql.c:40:19: mysql.h : Aucun fichier ou répertoire de ce type sql_mysql.c:47: error: erreur d'analyse syntaxique before MYSQL sql_mysql.c:47: attention : pas de point virgule à la fin de la structure ou de l'union sql_mysql.c:48: attention : type defaults to `int' in declaration of `sock' sql_mysql.c:48: attention : data definition has no type or storage class sql_mysql.c:49: error: erreur d'analyse syntaxique before '*' token sql_mysql.c:49: attention : type defaults to `int' in declaration of `result' sql_mysql.c:49: attention : data definition has no type or storage class sql_mysql.c:51: error: erreur d'analyse syntaxique before '}' token sql_mysql.c:51: attention : type defaults to `int' in declaration of `rlm_sql_mysql_sock' sql_mysql.c:51: attention : data definition has no type or storage class sql_mysql.c: Dans la fonction « sql_init_socket »: sql_mysql.c:62: error: `mysql_sock' undeclared (first use in this function) sql_mysql.c:62: error: (Each undeclared identifier is reported only once sql_mysql.c:62: error: for each function it appears in.) sql_mysql.c:65: error: erreur d'analyse syntaxique before ')' token sql_mysql.c:76: attention : implicit declaration of function `mysql_init' sql_mysql.c:77: attention : implicit declaration of function `mysql_real_connect' sql_mysql.c:84: error: `CLIENT_FOUND_ROWS' undeclared (first use in this function) sql_mysql.c:86: attention : implicit declaration of function `mysql_error' sql_mysql.c:86: attention : l'argument de format n'est pas un pointeur (arg 3) sql_mysql.c: Dans la fonction « sql_check_error »: sql_mysql.c:122: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) sql_mysql.c:123: error: `CR_SERVER_LOST' undeclared (first use in this function) sql_mysql.c:131: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function) sql_mysql.c:132: error: `CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function) sql_mysql.c:133: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function) sql_mysql.c: Dans la fonction « sql_query »: sql_mysql.c:151: error: `mysql_sock' undeclared (first use in this function) sql_mysql.c:160: attention : implicit declaration of function `mysql_query' sql_mysql.c:161: attention : implicit declaration of function `mysql_errno' sql_mysql.c: Dans la fonction « sql_store_result »: sql_mysql.c:175: error: `mysql_sock' undeclared (first use in this function) sql_mysql.c:181: attention : implicit declaration of function `mysql_store_result' sql_mysql.c:184: attention : l'argument de format n'est pas un pointeur (arg 3) sql_mysql.c: Dans la fonction « sql_num_fields »: sql_mysql.c:202: error: `mysql_sock' undeclared (first use in this function) sql_mysql.c:207: attention : implicit declaration of function `mysql_num_fields' sql_mysql.c:211: attention : l'argument de format n'est pas un pointeur (arg 3) sql_mysql.c: Dans la fonction « sql_num_rows »: sql_mysql.c:257: error: `mysql_sock' undeclared (first use in this function) sql_mysql.c:260: attention : implicit declaration of function `mysql_num_rows' sql_mysql.c: Dans la fonction « sql_fetch_row »: sql_mysql.c:277: error: `mysql_sock' undeclared (first use in this function) sql_mysql.c:286: attention : implicit declaration of function `mysql_fetch_row' sql_mysql.c:286: attention : affectation transforme un entier en pointeur sans transtypage sql_mysql.c: Dans la fonction « sql_free_result »: sql_mysql.c:305: error: `mysql_sock' undeclared (first use in this function) sql_mysql.c:308: attention : implicit declaration of function `mysql_free_result' sql_mysql.c: Dans la fonction « sql_error »:
Re: fedora core 3 make error
On Wed, 16 Feb 2005 14:41:12 -0500, Drew Weaver [EMAIL PROTECTED] wrote: So noone has ever successfully compiled freeradius on Fedora core 3? x99_rlm.c: In function `x99_token_authenticate': x99_rlm.c:550: error: label at end of compound statement gmake[6]: *** [x99_rlm.o] Error 1 gmake[6]: Leaving directory `/root/freeradius-1.0.1/src/modules/rlm_x99_token' gmake[5]: *** [common] Error 1 gmake[5]: Leaving directory `/root/freeradius-1.0.1/src/modules' gmake[4]: *** [all] Error 2 gmake[4]: Leaving directory `/root/freeradius-1.0.1/src/modules' gmake[3]: *** [common] Error 1 gmake[3]: Leaving directory `/root/freeradius-1.0.1/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/root/freeradius-1.0.1/src' gmake[1]: *** [common] Error 1 gmake[1]: Leaving directory `/root/freeradius-1.0.1' make: *** [all] Error 2 If you don't use x99 modules, add --without-rlm_x99 in the ./configure regards - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Install: Make command.
On Tue, 15 Feb 2005 08:47:47 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi i read a post on how to install Free Radius with an XP supplicant (link shown below). I am a newbie to Linux and radius so hopefully you can be patient. I am running the latest version of FreeBSD, Openssl (openssl-0.9.7-stable-SNAP-20050209), and FreeRadius (freeradius-snapshot-20050209). I followed instructions from here: http://text.dslreports.com/forum/remark,9286052~mode=flat When i run the make command i get the following error. gmake[1]: Entering directory `/home/radius/freeradius-snapshot-20050209' Making all in libltdl... gmake[2]: Entering directory `/home/radius/freeradius-snapshot-20050209/libltdl' gmake[2]: *** No rule to make target `all'. Stop. gmake[2]: Leaving directory `/home/radius/freeradius-snapshot-20050209/libltdl' gmake[1]: *** [common] Error 1 gmake[1]: Leaving directory `/home/radius/freeradius-snapshot-20050209' make: *** [all] Error 2 so then. I tried this command and appended it to the ./configure command. - -disable-ltdl-install, i then tried the make command which worked but the make install command failed. Any ideas thanks in advance, You miss the following Library libltdl3-dev apt-get install libltdl3-dev and relaunch ./configure ... make make install ;) Matt Carter Systems Analyst CPI Products A DE-STA-CO Industries Company - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
EAP TLS + Mysql + Accounting
Hi All I'm using a free radius with EAP TLS and Mysql and i work :) but the Accounting Query no working when the user authenticates ! My Config : authorize { # # The preprocess module takes care of sanitizing some bizarre # attributes in the request, and turning them into attributes # which are more standard. # # It takes care of processing the 'raddb/hints' and the # 'raddb/huntgroups' files. # # It also adds the %{Client-IP-Address} attribute to the request. preprocess # # If you want to have a log of authentication requests, # un-comment the following line, and the 'detail auth_log' # section, above. auth_log # attr_filter # # The chap module will set 'Auth-Type := CHAP' if we are # handling a CHAP request and Auth-Type has not already been set ## chap # # If the users are logging in with an MS-CHAP-Challenge # attribute for authentication, the mschap module will find # the MS-CHAP-Challenge attribute, and add 'Auth-Type := MS-CHAP' # to the request, which will cause the server to then use # the mschap module for authentication. ## mschap # # If you have a Cisco SIP server authenticating against # FreeRADIUS, uncomment the following line, and the 'digest' # line in the 'authenticate' section. # digest # # Look for IPASS style 'realm/', and if not found, look for # '@realm', and decide whether or not to proxy, based on # that. # IPASS # # If you are using multiple kinds of realms, you probably # want to set ignore_null = yes for all of them. # Otherwise, when the first style of realm doesn't match, # the other styles won't be checked. # ## suffix # ntdomain # # This module takes care of EAP-MD5, EAP-TLS, and EAP-LEAP # authentication. # # It also sets the EAP-Type attribute in the request # attribute list to the EAP type from the packet. ## eap # # Read the 'users' file ## files # # Look in an SQL database. The schema of the database # is meant to mirror the users file. # # See Authorization Queries in sql.conf sql # # If you are using /etc/smbpasswd, and are also doing # mschap authentication, the un-comment this line, and # configure the 'etc_smbpasswd' module, above. # etc_smbpasswd # # The ldap module will set Auth-Type to LDAP if it has not # already been set # ldap # # Enforce daily limits on time spent logged in. # daily # # Use the checkval module # checkval } # Authentication. # # # This section lists which modules are available for authentication. # Note that it does NOT mean 'try each module in order'. It means # that a module from the 'authorize' section adds a configuration # attribute 'Auth-Type := FOO'. That authentication type is then # used to pick the apropriate module from the list below. # # In general, you SHOULD NOT set the Auth-Type attribute. The server # will figure it out on its own, and will do the right thing. The # most common side effect of erroneously setting the Auth-Type # attribute is that one authentication method will work, but the # others will not. # # The common reasons to set the Auth-Type attribute by hand # is to either forcibly reject the user, or forcibly accept him. # authenticate { # # PAP authentication, when a back-end database listed # in the 'authorize' section supplies a password. The # password can be clear-text, or encrypted. Auth-Type PAP { pap } # # Most people want CHAP authentication # A back-end database listed in the 'authorize' section # MUST supply a CLEAR TEXT password. Encrypted passwords # won't work. Auth-Type CHAP { chap } # # MSCHAP authentication. Auth-Type MS-CHAP { mschap } # # If you have a Cisco SIP server authenticating against # FreeRADIUS, uncomment the following line, and the 'digest' # line in the 'authorize' section. # digest # # Pluggable Authentication Modules. # pam # # See 'man getpwent' for information on how the 'unix' # module checks the users password. Note that packets # containing CHAP-Password attributes CANNOT be authenticated # against /etc/passwd! See the FAQ for details. # unix # Uncomment it if you want to use ldap for