Re: ippool-dhcp and Oracle

2013-06-09 Thread Бен Томпсон
Many thanks. 2013/6/9 Alan DeKok al...@deployingradius.com Бен Томпсон wrote: I am still testing ippool-dhcp and after updating to the latest git HEAD I have come across a new issue. For some reason I am seeing the error Unknown attribute regarding the variable %{pool-key}. That's

Re: ippool-dhcp and Oracle

2013-06-09 Thread Бен Томпсон
item'allocate-clear' must not be empty 2013/6/9 Бен Томпсон b.thomp...@latera.ru Many thanks. 2013/6/9 Alan DeKok al...@deployingradius.com Бен Томпсон wrote: I am still testing ippool-dhcp and after updating to the latest git HEAD I have come across a new issue. For some reason I am

Re: talloc.h not found but libtalloc-dev is installed

2013-06-02 Thread Бен Томпсон
I did a git pull this morning and now configure is working. Many thanks to eveyone. 2013/5/31 Arran Cudbard-Bell a.cudba...@freeradius.org On 31 May 2013, at 10:05, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: On 31 May 2013, at 09:03, Alan DeKok al...@deployingradius.com wrote:

Updating the n'th occurance of an attribute

2013-05-31 Thread Бен Томпсон
Hello everyone I have a quick queston. I noticed in the man page of unlang that we can reference attributes using the syntax: %{Attribute-Name[index]} This is a very useful feature :-) However, I just wanted to check whether we can update attributes in the same way? I mean something like this:

talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Бен Томпсон
Hello everyone I am trying to build the latest code from git master but ./configure fails with this error: checking for talloc.h in /usr/include... no checking for talloc.h... no checking for talloc.h in /usr/local/include... no checking for talloc.h in /opt/include... no configure: WARNING:

Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Бен Томпсон
I have tried the packages from squeeze (2.0.1) and wheezy (2.0.7+git20120207). 2013/5/31 a.l.m.bu...@lboro.ac.uk Hi, This is on debian squeeze and I have libtalloc-dev installed. I also tried adding --with-talloc-include-dir=/usr/include but this did not help. what version of

Re: talloc.h not found but libtalloc-dev is installed

2013-05-31 Thread Бен Томпсон
-arguments' cc1: error: unrecognized command line option -Wdocumentation 2013/5/31 Phil Mayers p.may...@imperial.ac.uk On 31/05/13 11:38, Бен Томпсон wrote: I have tried the packages from squeeze (2.0.1) and wheezy (2.0.7+git20120207). Maybe have a look in config.log and related, see what

Re: ippool-dhcp and Oracle

2013-03-31 Thread Бен Томпсон
Many thanks. I will give it a try. I am still working on this but, I have some further issues which I need to resolve. Firstly the ippool table for the oracle ippool schema contains various columns which are defined as NOT NULL: CREATE TABLE radippool ( id INT PRIMARY KEY,

Re: Wrong destination port in reply to DHCP relay

2013-03-26 Thread Бен Томпсон
2013/3/26 Alan DeKok al...@deployingradius.com: Бен Томпсон wrote: I have an issue with an installation of FreeRADIUS 2.2.0 configured for DHCP, and I am seeing a problem where FreeRADIUS is replying to the wrong port on the DHCP relay. The request comes in like this :- Received DHCP

Wrong destination port in reply to DHCP relay

2013-03-25 Thread Бен Томпсон
Hello Everyone I have an issue with an installation of FreeRADIUS 2.2.0 configured for DHCP, and I am seeing a problem where FreeRADIUS is replying to the wrong port on the DHCP relay. The request comes in like this :- Received DHCP-Discover of id de6dc6f2 from 10.77.1.254:68 to 10.0.0.1:67

Re: ippool-dhcp and Oracle

2013-03-25 Thread Бен Томпсон
2013/3/25 Arran Cudbard-Bell a.cudba...@freeradius.org: On 25 Mar 2013, at 02:57, Arran Cudbard-Bell a.cudba...@freeradius.org wrote: I am not sure what is happening here so I will have to do some reading. Fixed. Git pull. Or would have been if git push hadn't hung... Sorry GitHub has

Re: ippool-dhcp and Oracle

2013-03-24 Thread Бен Томпсон
2013/3/23 Бен Томпсон b.thomp...@latera.ru: 2013/3/23 Arran Cudbard-Bell a.cudba...@freeradius.org: On 23 Mar 2013, at 12:22, Бен Томпсон b.thomp...@latera.ru wrote: Hello Everyone Could anyone advise me what would be required to us dhcp-ippool with Oracle? I had a quick look through

Re: ippool-dhcp and Oracle

2013-03-24 Thread Бен Томпсон
2013/3/24 Alan DeKok al...@deployingradius.com: Бен Томпсон wrote: I began work on testing with Oracle but I have come across a couple of issues. Firstly one of my SQL statements is throwing up an error, and secondly the server is sending a unicast reply when I need a broadcast. I should

Re: ippool-dhcp and Oracle

2013-03-24 Thread Бен Томпсон
2013/3/25 Alan DeKok al...@deployingradius.com: Бен Томпсон wrote: The SQL statement START TRANSACTION looks to be hard coded into rlm_sqlippool.c but I don't know enough about Oracle etiher to say why it is flagged as an error. It's a configuration item. You can change it by editing

ippool-dhcp and Oracle

2013-03-23 Thread Бен Томпсон
Hello Everyone Could anyone advise me what would be required to us dhcp-ippool with Oracle? I had a quick look through the files in git and it seems to me that the only thing missing is queries.conf? If that is all that is required I am happy to do the work of porting the sql queries from the

Re: ippool-dhcp and Oracle

2013-03-23 Thread Бен Томпсон
2013/3/23 Arran Cudbard-Bell a.cudba...@freeradius.org: On 23 Mar 2013, at 12:22, Бен Томпсон b.thomp...@latera.ru wrote: Hello Everyone Could anyone advise me what would be required to us dhcp-ippool with Oracle? I had a quick look through the files in git and it seems to me that the only

Re: Packet-Original-Timestamp

2013-03-08 Thread Бен Томпсон
If you could provide a backtrace of the rlm_perl module at the point it gets stuck it'd be helpful. Then we can fix it before someone else runs into the same issue. Hello Arran I am not very familiar debugging C programs, but maybe this is will help :- root@somecomp:~# gdb

Re: Packet-Original-Timestamp

2013-03-01 Thread Бен Томпсон
2013/3/1 Бен Томпсон b.thomp...@latera.ru: 2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 01:45, Бен Томпсон b.thomp...@latera.ru wrote: 2013/3/1 Бен Томпсон b.thomp...@latera.ru: 2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 00:43, Бен

Re: Packet-Original-Timestamp

2013-03-01 Thread Бен Томпсон
2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 03:56, Бен Томпсон b.thomp...@latera.ru wrote: 2013/3/1 Бен Томпсон b.thomp...@latera.ru: 2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 01:45, Бен Томпсон b.thomp...@latera.ru wrote: 2013/3

Re: Packet-Original-Timestamp

2013-03-01 Thread Бен Томпсон
2013/3/1 Alan DeKok al...@deployingradius.com: Бен Томпсон wrote: I tried checking out the git master code, but it just hangs when calling rlm_perl. This is the last line I see when running in debug mode :- Fri Mar 1 12:46:49 2013 : Debug: (0) modsingle[authorize]: calling perl (rlm_perl

Packet-Original-Timestamp

2013-02-28 Thread Бен Томпсон
Hello Everyone I have a NAS which is not sending Event-Timestamp in accounting messages. I wondered if I could create it in unlang by subtracting Acct-Delay-Time from Packet-Original-Timestamp. However, when I put a reference to Packet-Original-Timestamp in the acconting setion I get the

Re: Packet-Original-Timestamp

2013-02-28 Thread Бен Томпсон
2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 00:43, Бен Томпсон b.thomp...@latera.ru wrote: Hello Everyone I have a NAS which is not sending Event-Timestamp in accounting messages. I wondered if I could create it in unlang by subtracting Acct-Delay-Time from

Re: Trucation of octet attribute handled by rlm_perl

2013-02-28 Thread Бен Томпсон
'.unpack('H*', $route); On 28.02.2013 11:05, Бен Томпсон wrote: Hello everyone I am having a slight problem with rlm_perl and I would really appreciate any advice/help. I have a perl script which rlm_perl adds a value to the DHCP-Classless-Static-Route attribute something like

Re: Packet-Original-Timestamp

2013-02-28 Thread Бен Томпсон
2013/3/1 Бен Томпсон b.thomp...@latera.ru: 2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 00:43, Бен Томпсон b.thomp...@latera.ru wrote: Hello Everyone I have a NAS which is not sending Event-Timestamp in accounting messages. I wondered if I could create

Re: Packet-Original-Timestamp

2013-02-28 Thread Бен Томпсон
2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 01:45, Бен Томпсон b.thomp...@latera.ru wrote: 2013/3/1 Бен Томпсон b.thomp...@latera.ru: 2013/3/1 Arran Cudbard-Bell a.cudba...@freeradius.org: On 1 Mar 2013, at 00:43, Бен Томпсон b.thomp...@latera.ru wrote: Hello

Trucation of octet attribute handled by rlm_perl

2013-02-27 Thread Бен Томпсон
Hello everyone I am having a slight problem with rlm_perl and I would really appreciate any advice/help. I have a perl script which rlm_perl adds a value to the DHCP-Classless-Static-Route attribute something like this :- perl script snippets ... my $route = pack('C7',

Understanding the IP Pool module

2013-02-12 Thread Бен Томпсон
Hello Everyone I am hoping to use rlm_ippool and I would like to understand a bit about how it works. Firstly I want to understand the format of the database. I can see from the output of rlm_ippool_tool that there are five columns :- Key | IP Address | Active | CLI | Num It is obvious what

Re: Understanding the IP Pool module

2013-02-12 Thread Бен Томпсон
Thanks Alan 2013/2/12 Alan DeKok al...@deployingradius.com: Бен Томпсон wrote: I am hoping to use rlm_ippool and I would like to understand a bit about how it works. Firstly I want to understand the format of the database. The best approach is to look at the documentation, followed