sqlcounter reauthentication flag
Hi, I just heard about a so-called reauthentication flag. Has this something to do with the sqlcounter-module? Could I use this flag to logout the clients automatically after their login expires instead of using the sqlcounter module (as I do not get a self-compiled fr running properly)? How would I have to use it, is there some documentation somewhere? If I use neither sqlcounter nor this flag, do I understand correct, that the clients would not be logged off automatically after their login expires? But they could not login again after expiration? Thanks for this hint, Jan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radius doesn't start up correct
Hi, #ps aux | grep radiusd root 17622 89.6 0.0 4388 2248 pts/1R+ 02:38 0:02 radiusd # netstat -nlp udp 1580 0 0.0.0.0:18120.0.0.0:*7579/radiusd udp0 0 0.0.0.0:18130.0.0.0:*7579/radiusd That Local IP 0.0.0.0 can't be a good sign, right?! No, that's fine. [...] Thanks, didn't know that. But then I really not understand why it does not answer to any requests. Process is running but no responses to radiustest and no entries in the log. Problem ist it runs on UDP so I can't just try with telnet. Actually: /etc/services does define it should also run on 1812/TCP, and radiusd.conf says port = 0 so it really should do as /etc/services says, but it doesn't: no TCP. Little experiment: deleting the line radiusd1812/udp in /etc/services and setting port = 1812/tcp in radiusd.conf and starting by giving definitely the right config dir: # radiusd -d /usr/local/etc/raddb and... - still: netstat -nlp: udp 0 0 0.0.0.0:18120.0.0.0:* 16289/radiusd Now how on earth ist this possible? Could it be radtest tries only on tcp? Please tell me: When you start radiusd, is it supposed to display more than this: # radiusd Thu Mar 8 15:17:28 2007 : Info: Starting - reading configuration files ... or is this all I should get? Is there some other possibility how I could test it wether it's running correctly? Thank you so much for all your help, jan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radius doesn't start up correct
Satish Patel wrote: check process ID #ps aux | grep radiusd root 17622 89.6 0.0 4388 2248 pts/1R+ 02:38 0:02 radiusd I also found: # netstat -nlp udp 1580 0 0.0.0.0:18120.0.0.0:*7579/radiusd udp0 0 0.0.0.0:18130.0.0.0:*7579/radiusd That Local IP 0.0.0.0 can't be a good sign, right?! Could it be that I'm wrong and the whole thing is not broken after all but running just fine only listening to a broken local IP? BUT: - why does using -X or -x break with a segfault? (could be a different problem) - invoking with or without -f just deliver an: Thu Mar 8 01:50:33 2007 : Info: Starting - reading configuration files ... and nothing more. Shouldn't it say something like service running and fork to background? - radtest just keeps repeating this request without getting an answer: # radtest steve testing localhost 10 testing123 Sending Access-Request of id 122 to 127.0.0.1 port 1812 User-Name = steve User-Password = testing NAS-IP-Address = 255.255.255.255 NAS-Port = 10 Shouldn't there be some sort of answer like password ok or so? (Could also be a problem of radtest) Could this be because of the 0.0.0.0-adress? What do you think: Does it run correctly, just with a broken local IP config? What do you think about this? Perhaps the whole thing is actualy working and I just didn't realize. That would be quite embarrassing, wouldn't it? :-) Jan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
rlm_sqlcounter in precompiled binarys? Problem in compiling.
Hi there, I am just trying to get freeradius up and running to authenticate a chillispot. Thus I will need the sqlcounter module. I found a small number of postings covering this issue and they all indicate I would have to compile freeradius manually as this module is still experimental. On the other hand, all these postings and howtos seem to be about two years old. So my question is: - Is sqlcounter still experimental or is it yet included in the standard binarys (debian repository)? Because I'm kind of having problems in compiling it myself and can't quite figure out what this errors are all about: make [...] gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I/root/freeradius-1.1.5/src/include -I/root/freeradius-1.1.5/src/modules/rlm_sql -c rlm_sqlippool.c -fPIC -DPIC -o .libs/rlm_sqlippool.o In file included from rlm_sqlippool.c:37: /root/freeradius-1.1.5/src/include/modpriv.h:7:18: ltdl.h: No such file or directory In file included from rlm_sqlippool.c:37: /root/freeradius-1.1.5/src/include/modpriv.h:16: error: syntax error before lt_dlhandle /root/freeradius-1.1.5/src/include/modpriv.h:16: warning: no semicolon at end of struct or union /root/freeradius-1.1.5/src/include/modpriv.h:17: warning: type defaults to `int' in declaration of `module_list_t' /root/freeradius-1.1.5/src/include/modpriv.h:17: warning: data definition has no type or storage class /root/freeradius-1.1.5/src/include/modpriv.h:27: error: syntax error before module_list_t /root/freeradius-1.1.5/src/include/modpriv.h:27: warning: no semicolon at end of struct or union /root/freeradius-1.1.5/src/include/modpriv.h:32: error: syntax error before '}' token /root/freeradius-1.1.5/src/include/modpriv.h:32: warning: type defaults to `int' in declaration of `module_instance_t' /root/freeradius-1.1.5/src/include/modpriv.h:32: warning: data definition has no type or storage class /root/freeradius-1.1.5/src/include/modpriv.h:34: error: syntax error before '*' token /root/freeradius-1.1.5/src/include/modpriv.h:34: warning: type defaults to `int' in declaration of `find_module_instance' /root/freeradius-1.1.5/src/include/modpriv.h:34: warning: data definition has no type or storage class In file included from rlm_sqlippool.c:39: /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:15:25: ltdl.h: No such file or directory In file included from rlm_sqlippool.c:39: /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:68: error: syntax error before lt_dlhandle /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:68: warning: no semicolon at end of struct or union /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:70: error: syntax error before '}' token /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:70: warning: type defaults to `int' in declaration of `SQL_INST' /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:70: warning: data definition has no type or storage class /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:73: error: syntax error before '*' token /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:74: error: syntax error before '*' token /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:75: error: syntax error before '*' token /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:76: error: syntax error before '*' token /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:77: error: syntax error before '*' token /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:80: error: syntax error before '*' token /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:84: error: syntax error before SQL_INST /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:85: error: syntax error before SQL_INST /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:86: error: syntax error before SQL_INST /root/freeradius-1.1.5/src/modules/rlm_sql/rlm_sql.h:87: error: syntax error before SQL_INST rlm_sqlippool.c:53: error: syntax error before SQL_INST rlm_sqlippool.c:53: warning: no semicolon at end of struct or union rlm_sqlippool.c:105: error: syntax error before '}' token rlm_sqlippool.c:105: warning: type defaults to `int' in declaration of `rlm_sqlippool_t' rlm_sqlippool.c:105: warning: data definition has no type or storage class rlm_sqlippool.c:128: error: syntax error before ')' token rlm_sqlippool.c:128: error: initializer element is not constant rlm_sqlippool.c:128: error: (near initialization for `module_config[0].offset') rlm_sqlippool.c:128: error: initializer element is not constant rlm_sqlippool.c:128: error: (near initialization for `module_config[0]') rlm_sqlippool.c:130: error: syntax error before ')' token rlm_sqlippool.c:130: error: initializer element is not constant rlm_sqlippool.c:130: error: (near initialization for `module_config[1].offset') rlm_sqlippool.c:130: error: initializer element is not constant rlm_sqlippool.c:130: error: (near initialization for `module_config[1]') rlm_sqlippool.c:132: error: syntax error before ')' token
Re: rlm_sqlcounter in precompiled binarys? Problem in compiling.
Hi there, sorry to bother again, but I found the problem with ltdl.h I asked about earlier: I installed mysql 5.0 between './configure' and 'make' freeradius. Simply ./configure once more and then make make install did the job. Anyway my question remains for the next time I have to install it: Is sqlcounter still experimental or is it in the binaries yet? Best wishes, Jan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
radius doesn't start up correct
Hi, I'm so sorry to bother you again but this time I really can't figure out what's happening. when I try to start freeradius manually, it just stops in the middle of reading the config files: /usr/local/etc/raddb# radiusd -f Tue Mar 6 19:31:28 2007 : Info: Starting - reading configuration files ... ...and nothing happens any more, it just hangs. If I try -x or -xx, I end up with a segfault, so this is no help: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Module: Instantiated exec (exec) Segmentation fault I also tried starting via radwatch and it realizes something isn't right and restarts radiusd every 15 secs. I have it configured for use with mysql and have the database populated, but I guess it doesn't even connect... Is the hanging caused by the same problem as the segfault? What could that be? Any help qould be appreciated, thanks. Jan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radius doesn't start up correct
Hi, /usr/local/etc/raddb# radiusd -f ...and nothing happens any more, it just hangs. radiusd -X not radiusd -x ! Thanks for the idea, but that does not seem to make a difference: segfault. The only clues it gives me are these two errors: Using deprecated naslist file. Support for this will go away soon. rlm_exec: Wait=yes but no output defined. Did you mean output=none? But hey, both doesn't sound that serious?! Any other ideas? Thank you in advance, Jan P.S.: Here the complete output: # radiusd -X Starting - reading configuration files ... reread_config: reading radiusd.conf Config: including file: /usr/local/etc/raddb/proxy.conf Config: including file: /usr/local/etc/raddb/clients.conf Config: including file: /usr/local/etc/raddb/snmp.conf Config: including file: /usr/local/etc/raddb/eap.conf Config: including file: /usr/local/etc/raddb/sql.conf main: prefix = /usr/local main: localstatedir = /usr/local/var main: logdir = /usr/local/var/log/radius main: libdir = /usr/local/lib main: radacctdir = /usr/local/var/log/radius/radacct main: hostname_lookups = no main: max_request_time = 30 main: cleanup_delay = 5 main: max_requests = 1024 main: delete_blocked_requests = 0 main: port = 0 main: allow_core_dumps = no main: log_stripped_names = no main: log_file = /usr/local/var/log/radius/radius.log main: log_auth = no main: log_auth_badpass = no main: log_auth_goodpass = no main: pidfile = /usr/local/var/run/radiusd/radiusd.pid main: user = (null) main: group = (null) main: usercollide = no main: lower_user = no main: lower_pass = no main: nospace_user = no main: nospace_pass = no main: checkrad = /usr/local/sbin/checkrad main: proxy_requests = yes proxy: retry_delay = 5 proxy: retry_count = 3 proxy: synchronous = no proxy: default_fallback = yes proxy: dead_time = 120 proxy: post_proxy_authorize = no proxy: wake_all_if_all_dead = no security: max_attributes = 200 security: reject_delay = 1 security: status_server = no main: debug_level = 0 read_config_files: reading dictionary read_config_files: reading naslist Using deprecated naslist file. Support for this will go away soon. read_config_files: reading clients read_config_files: reading realms radiusd: entering modules setup Module: Library search path is /usr/local/lib Module: Loaded exec exec: wait = yes exec: program = (null) exec: input_pairs = request exec: output_pairs = (null) exec: packet_type = (null) rlm_exec: Wait=yes but no output defined. Did you mean output=none? Module: Instantiated exec (exec) Segmentation fault - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html