Re: Execution of rlm code when remote server is not responding.

2012-10-08 Thread Arka Sharma
On Thu, Sep 27, 2012 at 8:43 PM, Phil Mayers p.may...@imperial.ac.ukwrote: On 27/09/12 12:32, Arka Sharma wrote: Thanks a lot Phil for your reply.Now actually in my rlm code I want to set a flag to mark the vent of server went down and invoke a java code using JNI that is part of rlm

Re: Execution of rlm code when remote server is not responding.

2012-10-08 Thread Arka Sharma
On Mon, Oct 8, 2012 at 11:41 AM, Arka Sharma arka.sharma1...@gmail.comwrote: On Thu, Sep 27, 2012 at 8:43 PM, Phil Mayers p.may...@imperial.ac.ukwrote: On 27/09/12 12:32, Arka Sharma wrote: Thanks a lot Phil for your reply.Now actually in my rlm code I want to set a flag to mark the vent

Re: Execution of rlm code when remote server is not responding.

2012-10-08 Thread Alan DeKok
Arka Sharma wrote: Please learn to edit your responses to the list. In my code after adding PPAQ vsa rad_send() has been called to send request to PPS. I have check that the return value of rad_send is NULL then fail to send the proxy request.But I want like to check whether PPS response

Execution of rlm code when remote server is not responding.

2012-09-27 Thread Arka Sharma
Hi, I have a remote PPS server where I am proxying radius requests coming from the NAS. I have a requirement like when that remote PPS goes down(which I am simulating by setting a wrong ip in proxy.conf realm configuration) then I have to perform a certain task in rlm code.But my

Re: Execution of rlm code when remote server is not responding.

2012-09-27 Thread Phil Mayers
to perform a certain task in rlm What task? Does it have to be in rlm code? Because rlm code only runs in response to packets, not server-down events. code.But my observation is when I am setting a dummy ip for PPS, the radius server running on my machine is marking that remote server as zombie after 3

Re: Execution of rlm code when remote server is not responding.

2012-09-27 Thread Alan DeKok
Arka Sharma wrote: Thanks a lot Phil for your reply.Now actually in my rlm code I want to set a flag to mark the vent of server went down and invoke a java code using JNI that is part of rlm. There is no event of server down. There is a server failed to respond to request. As Phil said

Re: Execution of rlm code when remote server is not responding.

2012-09-27 Thread Phil Mayers
On 27/09/12 12:32, Arka Sharma wrote: Thanks a lot Phil for your reply.Now actually in my rlm code I want to set a flag to mark the vent of server went down and invoke a java code using JNI that is part of rlm. Sorry, I don't understand that. Can you elaborate? It sounds like you have

How to access 3GPP2 Attributes in rlm module

2011-12-28 Thread Ratnesh Sinha
Hi, Pl. let me know how to access for example 3GPP2 attribute in the module. Regards, Ratnesh - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: How to access 3GPP2 Attributes in rlm module

2011-12-28 Thread Alan DeKok
Ratnesh Sinha wrote: Pl. let me know how to access for example 3GPP2 attribute in the module. What does that mean? Learn how to ask *good* questions. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Question about rlm-unix authentication

2010-09-30 Thread James S. Smith
I'm trying to get FreeRadius to authenticate against the local server's usernames and passwords. I have a fresh installation and I've confirmed that authentication is working with a test entry in the /etc/raddb/users file. I've also tested authentication from another system and it works too.

Re: Question about rlm-unix authentication

2010-09-30 Thread Alan DeKok
James S. Smith wrote: I'm trying to get FreeRadius to authenticate against the local server's usernames and passwords. I have a fresh installation and I've confirmed that authentication is working with a test entry in the /etc/raddb/users file. I've also tested authentication from another

About how to get data from MySQL db in other rlm modules

2010-05-21 Thread weiwei fang
hi, all! Now I have a question about getting data from mysql database in rlm_wimax. I want to add some new attribute (such as the level of a single client) in the clients table of mysql. Then when a client request arrives to the freeradius server, the rlm_wimax can query the mysql to return the

Re: About how to get data from MySQL db in other rlm modules

2010-05-21 Thread Alan DeKok
weiwei fang wrote: Now I have a question about getting data from mysql database in rlm_wimax. I want to add some new attribute (such as the level of a single client) in the clients table of mysql. Then when a client request arrives to the freeradius server, the rlm_wimax can query the mysql to

rlm-ldap error for chap

2010-02-27 Thread Eric Eric
. The config is: --- On Wed, 2/24/10, Alan Buxey a.l.m.bu...@lboro.ac.uk wrote: From: Alan Buxey a.l.m.bu...@lboro.ac.uk Subject: Re: rlm-ldap error for chap To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Date: Wednesday, February 24, 2010, 7:45 PM Hi, Now to make matters

Re: rlm-ldap error for chap

2010-02-27 Thread Alan DeKok
Eric Eric wrote: with Cleartext-password or User-Password I have the same error. radius -x and my configs for chap are here. I searched a lot and test it but not found why it can't find clear text password. Should I add other thing? or change another file? Does your database have a

rlm-ldap error for chap

2010-02-24 Thread Eric Eric
Subject: Re: rlm-ldap error for chap To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Cc: Eric Eric eric121...@yahoo.com Date: Tuesday, February 23, 2010, 3:46 PM On 02/23/2010 05:31 AM, Eric Eric wrote: I changed Cleartext-Password in ldap.attrmap to User-Password Don't do

Re: rlm-ldap error for chap

2010-02-24 Thread John Dennis
I owe you an apology, I said not to edit /etc/raddb/ldap.attrmap, but you do. I always forget that the clear text password mapping is not in ldap.attrmap by default, I assume that because of the inherent security risks. By forcing you to add it you'll be forcefully aware of what you've done.

Re: rlm-ldap error for chap

2010-02-24 Thread Alan Buxey
Hi, Now to make matters a touch bit more complicated FreeRADIUS changed how it accessed the clear text password in its set of attributes. In older versions of FreeRADIUS it was known as User-Password, but that produced an unfortunate ambiguity and it was later modified to be

rlm-ldap error for chap

2010-02-23 Thread Eric Eric
Subject: Re: rlm-ldap error for chap To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Date: Tuesday, February 23, 2010, 6:47 AM On Tue, Feb 23, 2010 at 1:32 PM, Eric Eric eric121...@yahoo.com wrote: Hi I want to change authentication pap to chap. The users with clear passwords

Re: rlm-ldap error for chap

2010-02-23 Thread Eric Eric
/10, Eric Eric eric121...@yahoo.com wrote: From: Eric Eric eric121...@yahoo.com Subject: rlm-ldap error for chap To: FreeRadius users mailing list freeradius-users@lists.freeradius.org Date: Tuesday, February 23, 2010, 10:31 AM I changed Cleartext-Password in ldap.attrmap to User-Password and now

Re: rlm-ldap error for chap

2010-02-23 Thread John Dennis
On 02/23/2010 01:32 AM, Eric Eric wrote: Hi I want to change authentication pap to chap. The users with clear passwords are in ldap server. but the is error with clear password in rlm-ldap What version of FreeRADIUS are you running? Normally it's the first thing in the debug output, except

Re: rlm-ldap error for chap

2010-02-23 Thread John Dennis
On 02/23/2010 05:31 AM, Eric Eric wrote: I changed Cleartext-Password in ldap.attrmap to User-Password Don't do that, that's got nothing to do with finding the user's password in your directory. It's the password_attribute in your ldap config which controls how to find the users password

rlm-ldap error for chap

2010-02-22 Thread Eric Eric
Hi I want to change authentication pap to chap. The users with clear passwords are in ldap server. but the is error with clear password in rlm-ldap radiusd -x Starting - reading configuration files ... Using deprecated naslist file.  Support for this will go away soon. Module: Loaded exec

Re: rlm-ldap error for chap

2010-02-22 Thread Fajar A. Nugraha
On Tue, Feb 23, 2010 at 1:32 PM, Eric Eric eric121...@yahoo.com wrote: Hi I want to change authentication pap to chap. The users with clear passwords are in ldap server. but the is error with clear password in rlm-ldap rlm_ldap: LDAP userPassword mapped to RADIUS Cleartext-Password

Re: Yanıt: Re: Freeradius db.ippool is FULL Error : rlm _ippool: No available ip addresses in pool.

2009-12-14 Thread tnt
I know. But cant control many pos or devices power down directly. How db pool release active ip. I use rlm tool In the crontab every 30 minutes. But I think wrong way. Can you give for active session on the db ippool time out value or any way? Or different configuration. Note: this devices

Re: rlm

2009-10-01 Thread John Dennis
On 09/29/2009 08:35 PM, José Johnny RANDRIAMAMPIONONA wrote: I think It ll better to put it in a tutorial or something(I ll do it)! Good documentation is always appreciated and something we need more of. Documentation contributions will be greatly appreciated. Because it's vital

Re: rlm

2009-09-30 Thread Rakotomandimby Mihamina
09/30/2009 03:35 AM, José Johnny RANDRIAMAMPIONONA: I solved the problem. I think It ll better to put it in a tutorial or something(I ll do it)! Please, yes. I inted to switch AUTH to LDAP and keep PGSQL for ACCT, your feedback is important to me. -- Architecte Informatique chez

Re: rlm

2009-09-30 Thread José Johnny RANDRIAMAMPIONONA
Hi Mihamina, It ll take a few days to me to finish the tuto(my training report with it) but if u want I can email it in your Inbox. Anyway, I had two big problems: - I worked on a given server and the running distribution is not really my favorite one. I thought that the server was up to date ,

Re: rlm

2009-09-29 Thread José Johnny RANDRIAMAMPIONONA
Hi all, my special gratitude to Leigh Martell, Alan DeKoK,Alan Buxey, RAKOTOMANDIMBY,Ivan Kalik ,John Dennis .and all the team! I solved the problem. I think It ll better to put it in a tutorial or something(I ll do it)! Best regards 2009/9/28 John Dennis jden...@redhat.com On 09/28/2009 12:32

Re: rlm

2009-09-28 Thread Rakotomandimby Mihamina
09/28/2009 07:32 AM, José Johnny RANDRIAMAMPIONONA:: I posted this problem a week ago I think the best thing is first not to setup from sources. Give a try to _packages_. they are pretty good for If your distribution does not include packages for that, then change distribution. :-) --

Re: rlm

2009-09-28 Thread Alan Buxey
Hi, rlm_ldap doesnt work or cant compile? then you need to ensure that the required LDAP packages are installed on your distro. this is a distro/linux question and required such expertise and knowledge rather than a direct FreeRADIUS issue - to compiled FreeRADIUS with rlm_ldap you'll need

Re: rlm

2009-09-28 Thread Ivan Kalik
My problem is about the ldap library for freeradius (libldap which is needed by rlm_ldap) ... What should I do to install and configure it 'cause it's not in the freeradius-server package(I rebuilt it 5 times and I paid attention to the output? No, ldap support is not included in basic

Re: rlm

2009-09-28 Thread John Dennis
On 09/28/2009 12:32 AM, José Johnny RANDRIAMAMPIONONA wrote: Dear all, I posted this problem a week ago after searching in posted and solved emails like here (http://www.mail-archive.com/search?q=rlm_ldapl=freeradius-us...@lists.cistron.nlstart=40

rlm

2009-09-27 Thread José Johnny RANDRIAMAMPIONONA
Dear all, I posted this problem a week ago after searching in posted and solved emails like here ( http://www.mail-archive.com/search?q=rlm_ldapl=freeradius-us...@lists.cistron.nlstart=40 ). I have already asked but the answers were not effective... Anyway, I d like to express my gratitude to

Re: rlm

2009-09-27 Thread Leigh Martell
Hey, LIBLDAP is part of openldap, install the openldap libraries and headers then you will be able to compile rlm_ldap. If you already have it you'll have to post some more information so people help, but I am confident that is what you are missing. -Leigh Martell On Mon, Sep 28, 2009 at

Re: rlm

2009-09-27 Thread Alan DeKok
José Johnny RANDRIAMAMPIONONA wrote: I have already asked but the answers were not effective... Anyway, I d like to express my gratitude to those who have tried to read and respond to my problems ! So I m asking myself if : Using LDAP with freeradius is it something new or something? You

rlm eap problem

2009-05-29 Thread Michael Ziemann
Hi folks, Now I got a new problem with rlm_eap and the server doesn't start anymore. You were right, I commented $INCLUDE sites-enabled/ in radiusd.conf. So what can I do now? Best regards Michael FreeRADIUS Version 2.1.5, for host i686-pc-linux-gnu, built on Mar 26 2009 at 14:24:27

Re: rlm eap problem

2009-05-29 Thread A . L . M . Buxey
Hi, Now I got a new problem with rlm_eap and the server doesn't start anymore. You were right, I commented $INCLUDE sites-enabled/ in radiusd.conf. the errors are clear enough! Module: Instantiating eap-tls tls { rsa_key_exchange = no dh_key_exchange = yes

Re: rlm eap problem

2009-05-29 Thread Ivan Kalik
Now I got a new problem with rlm_eap and the server doesn't start anymore. You were right, I commented $INCLUDE sites-enabled/ in radiusd.conf. So what can I do now? ... rlm_eap: SSL error error:02001002:system library:fopen:No such file or directory rlm_eap_tls: Error reading Trusted

AW: rlm eap problem

2009-05-29 Thread Michael Ziemann
...@lists.freeradius.org [mailto:freeradius-users-bounces+michael.ziemann=herber-herber...@lists.freeradius.org] Im Auftrag von a.l.m.bu...@lboro.ac.uk Gesendet: Freitag, 29. Mai 2009 15:54 An: FreeRadius users mailing list Betreff: Re: rlm eap problem Hi, Now I got a new problem with rlm_eap and the server doesn't

RE: rlm eap problem

2009-05-29 Thread Danner, Mearl
@lists.freeradius.org [mailto:freeradius- users-bounces+jmdanner=samford@lists.freeradius.org] On Behalf Of Michael Ziemann Sent: Friday, May 29, 2009 9:19 AM To: FreeRadius users mailing list Subject: AW: rlm eap problem Hi there, Yes, of course you were right, the file was named

Rlm sqlcounter -- Data Based Counter

2008-12-02 Thread Marcel Grandemange
Good Day. Im wondering is someone could assist me here. I currently have freeradius setup and working somewhat. However I have following setup: sqlcounter monthlytraffic { counter-name = Monthly-Traffic check-name = Max-Monthly-Traffic

Re: Rlm sqlcounter -- Data Based Counter

2008-12-02 Thread tnt
#query = SELECT SUM(OctetTotal) FROM thismonthsusage WHERE UsernameView='%{%k}' } .. As soon as a new month rolls over there are NO accounting entries for that user for that month, hence no record and freeradius denies user as he hasn't got any entries, any body know how I should modify the view

Re: RLM-EAP-MD5 compilation problem

2008-09-30 Thread Alan DeKok
Andre Dieball wrote: I¹m trying to build a rpm for my CentOS 5.2 system. Everything worked fine the first time, but I need to do it again, as I need to include some special rlm-eap-md5 src files in order to make my freeradius to work with Kobil SecOvid (something similar to RSA SecureID

RLM-EAP-MD5 compilation problem

2008-09-29 Thread Andre Dieball
Hi there I¹m trying to build a rpm for my CentOS 5.2 system. Everything worked fine the first time, but I need to do it again, as I need to include some special rlm-eap-md5 src files in order to make my freeradius to work with Kobil SecOvid (something similar to RSA SecureID). When I start

Re: RLM-EAP-MD5 compilation problem

2008-09-29 Thread Stephen Bowman
rlm_eap_md5.c:24:22: error: autoconf.h: No such file or directory rlm_eap_md5.c:31:24: error: rad_assert.h: No such file or directory First, fix your paths/includes to resolve those dependencies. Then see what can't link. Also, compile against 2.1.1 (it won't fix this, but it's better in

Re: RLM-EAP-MD5 compilation problem

2008-09-29 Thread Stephen Bowman
On Mon, Sep 29, 2008 at 1:46 PM, Stephen Bowman [EMAIL PROTECTED] wrote: rlm_eap_md5.c:24:22: error: autoconf.h: No such file or directory rlm_eap_md5.c:31:24: error: rad_assert.h: No such file or directory First, fix your paths/includes to resolve those dependencies. Then see what

Re: RLM-EAP-MD5 compilation problem

2008-09-29 Thread Stephen Bowman
On Mon, Sep 29, 2008 at 2:44 PM, Andre Dieball [EMAIL PROTECTED]wrote: Hi Stephen the files mentioned are not in the list of file (not even in the package) which I need to copy to the freeradius sources, which leads me to the thought, that they might haven been part of freeradius 1.x but

AW: RLM-EAP-MD5 compilation problem

2008-09-29 Thread Andre Dieball
: [EMAIL PROTECTED] im Auftrag von Stephen Bowman Gesendet: Mo 29.09.2008 21:09 An: FreeRadius users mailing list Betreff: Re: RLM-EAP-MD5 compilation problem On Mon, Sep 29, 2008 at 2:44 PM, Andre Dieball [EMAIL PROTECTED] wrote: Hi Stephen the files mentioned

Re: Fwd: rlm-perl lc usernames

2008-09-27 Thread Charlie B
Thanks Ivan :) I agree its not a perl issue but still something to correct. Organization select naming schemes for their employees and now those that begin with r would be denied access. How can I assist to correct this issue for those cases with /r Thanks This is nothing to do with perl.

Re: Fwd: rlm-perl lc usernames

2008-09-26 Thread Charlie B
Hello Alan, I have upgrade to 2.1.1 however still the same effect with perl to lc the usernames perl_pool: item 0x2043d70 asigned new request. Handled so far: 1 found interpetator at address 0x2043d70 rlm_perl: RAD_REQUEST: NAS-Port-Type = Ethernet rlm_perl: RAD_REQUEST: Service-Type =

Re: Fwd: rlm-perl lc usernames

2008-09-26 Thread tnt
[suffix] No '@' in User-Name = \ aduserr, looking up realm NULL This is nothing to do with perl. There is a bug in handling \r in username. It is seen as carriage return and I can see it in sql queries (converted since it is not a safe character). Try a username that doesn't start with r and

Re: Fwd: rlm-perl lc usernames

2008-09-23 Thread Matthias Witte
On Mon, Sep 22, 2008 at 07:26:24PM +0100, [EMAIL PROTECTED] wrote: Hi, User-Name = \\raduser ^ ha. okay. with just a plain username you are safe, but with this windows case, you are dealing with \r - which is a special character. its

Re: Fwd: rlm-perl lc usernames

2008-09-23 Thread Charlie B
Thanks Alan, I have the git master tar file, do you recommend I do a git diff to try and find the differences or how best to proceed to narrow down the issue. Thanks - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Fwd: rlm-perl lc usernames

2008-09-23 Thread Alan DeKok
Charlie B wrote: I have the git master tar file, do you recommend I do a git diff to try and find the differences or how best to proceed to narrow down the issue. Huh? Why would you do a git diff? Please BUILD and RUN the server to see if the recent changes fixed it. Wandering through

Re: Fwd: rlm-perl lc usernames

2008-09-23 Thread Charlie B
Hi Alan, Where can I find tarball for freeradius-server-2.1.1? I'm going the rpm build so I can run the test. I didnt' see it on the ftp site. thx Please BUILD and RUN the server to see if the recent changes fixed it. Wandering through the source code won't help unless you know what

Re: Fwd: rlm-perl lc usernames

2008-09-23 Thread tnt
http://github.com/alandekok/freeradius-server/tree/master Ivan Kalik Kalik Informatika ISP Dana 23/9/2008, Charlie B [EMAIL PROTECTED] piše: Hi Alan, Where can I find tarball for freeradius-server-2.1.1? I'm going the rpm build so I can run the test. I didnt' see it on the ftp site. thx

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Charlie B
Hello Ivan, How do I get it to spit it out after the change? I can get it prior to: rlm_perl: RAD_REQUEST: NAS-Port-Type = Ethernet rlm_perl: RAD_REQUEST: Service-Type = Framed-User rlm_perl: RAD_REQUEST: Calling-Station-Id = 00-15-C5-02-39-99 rlm_perl: RAD_REQUEST: Called-Station-Id =

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Charlie B
Hello Alan, I changed the script, as per your indication to return MODULE_UPDATED rather than OK and get the following: rlm_perl: Added pair NAS-Port-Type = Ethernet rlm_perl: Added pair Service-Type = Framed-User rlm_perl: Added pair Calling-Station-Id = 00-15-C5-02-39-99 rlm_perl: Added pair

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread A . L . M . Buxey
Hi, thoughts on where to go from here to get this not to alter the username and just lc it but its not altering (apart from LC'ing it) - as your other post shows. throw the daemon some uppercased username (eg with 'radtest' tool) and check the debugging to see what you see from PERL alan -

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Charlie B
but its not altering (apart from LC'ing it) - as your other post shows. Hi Alan, it is lc'ing it, however it is also moving the r from the beginning of the username to the end of the username, which is what Im trying to stop - List info/subscribe/unsubscribe? See

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread tnt
Post the full debug for a radtest request with uppercase username. That logging function should go before you work with attributes. debug already logs what comes after. Ivan Kalik Kalik Informatika ISP Dana 22/9/2008, Charlie B [EMAIL PROTECTED] piše: but its not altering (apart from LC'ing

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread A . L . M . Buxey
Hi, Hi Alan, it is lc'ing it, however it is also moving the r from the beginning of the username to the end of the username, which is what Im trying to stop ..and from what you've posted so far, I'd say it isnt moving it. wheres the other upper case tests and debug as per requested? alan -

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Alan DeKok
Charlie B wrote: Hi Alan, it is lc'ing it, however it is also moving the r from the beginning of the username to the end of the username, which is what Im trying to stop I think it's a bug in the code. Please try the current git tree. See git.freeradius.org for instructions on grabbing a

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Charlie B
Post the full debug for a radtest request with uppercase username. That logging function should go before you work with attributes. debug already logs what comes after. Hello Ivan, Here is the debug using radtest radtest RadUser [EMAIL PROTECTED] localhost 10 testing123 FreeRADIUS Version

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Charlie B
Hi Alan, I run the same config (as previous post) which works as you indicated (and Ivan) with radtest however when I use a windows client this is what I get and the rearrangement of the username rad_recv: Access-Request packet from host 10.0.1.9 port 1645, id=203, length=139

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread tnt
Here is the debug using radtest radtest RadUser [EMAIL PROTECTED] localhost 10 testing123 .. rlm_perl: RAD_REQUEST: User-Name = RadUser .. rlm_perl: Added pair User-Name = raduser .. Sending Access-Accept of id 225 to 127.0.0.1 port 38149 Tunnel-Medium-Type:0 = IEEE-802

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread A . L . M . Buxey
Hi, User-Name = \\raduser ^ ha. okay. with just a plain username you are safe, but with this windows case, you are dealing with \r - which is a special character. its getting borked elsewhere. to verify this use another username that cannot be a

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Charlie B
Hi Alan, Did you want me to compare with git tree for 2.1 or with my current version 2.0.5? thx I think it's a bug in the code. Please try the current git tree. See git.freeradius.org for instructions on grabbing a tar file if you don't have git. Alan DeKok. - List

Re: Fwd: rlm-perl lc usernames

2008-09-22 Thread Alan DeKok
Charlie B wrote: Did you want me to compare with git tree for 2.1 or with my current version 2.0.5? thx Please download the git master branch. The fixes are in that, and not in 2.0.5. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Fwd: rlm-perl lc usernames

2008-09-20 Thread A . L . M . Buxey
Hi, Nobody :( have any tidbits to help me isolate this, obviously its not the perl script but what is altering the username. hmmm, you play with user-name and yet you return MODULE_OK.surely you've played with attributes so *SHOULD* be sending MODULE_UPDATED alan - List

Fwd: rlm-perl lc usernames

2008-09-19 Thread Charlie B
Nobody :( have any tidbits to help me isolate this, obviously its not the perl script but what is altering the username. Thanks -- Forwarded message -- From: Charlie B [EMAIL PROTECTED] Date: Thu, Sep 18, 2008 at 10:52 AM Subject: rlm-perl lc usernames To: freeradius-users

Re: Fwd: rlm-perl lc usernames

2008-09-19 Thread tnt
me isolate this, obviously its not the perl script but what is altering the username. Thanks -- Forwarded message -- From: Charlie B [EMAIL PROTECTED] Date: Thu, Sep 18, 2008 at 10:52 AM Subject: rlm-perl lc usernames To: freeradius-users@lists.freeradius.org Hello, Anyone can

rlm-perl lc usernames

2008-09-18 Thread Charlie B
Hello, Anyone can help me with this perl script (at bottom) which seem to be causing more than a simple lc, it seems to move the first character to the end... rlm_perl: Added pair User-Name = *\\raduser rlm_perl: Added pair EAP-Message = 0x02020011014e494e545c52616455736572 rlm_perl: Added

Re: Debugging RLM modules

2008-02-03 Thread Ali Majdzadeh
Hello Doug Thanks a lot for your usefull points. I am going to give it a try. Kind Regards Ali 2008/2/3, Doug Hardie [EMAIL PROTECTED]: On Feb 2, 2008, at 01:14, Alan DeKok wrote: Ali Majdzadeh wrote: Is there any way to debug an RLM module using gdb? Yes. The modules are just

Re: Debugging RLM modules

2008-02-02 Thread Alan DeKok
Ali Majdzadeh wrote: Is there any way to debug an RLM module using gdb? Yes. The modules are just shared libraries. See the gdb manual for how to deal with shared libraries. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Debugging RLM modules

2008-02-02 Thread Doug Hardie
On Feb 2, 2008, at 01:14, Alan DeKok wrote: Ali Majdzadeh wrote: Is there any way to debug an RLM module using gdb? Yes. The modules are just shared libraries. See the gdb manual for how to deal with shared libraries. Some additional info may be helpful. You can attach to a running

Re: Debugging RLM modules

2008-02-02 Thread Alan DeKok
Doug Hardie wrote: Yes. The modules are just shared libraries. See the gdb manual for how to deal with shared libraries. Some additional info may be helpful. Many of my unhelpful answers are intended to get people to read the documentation, and to think for themselves. If people are

Debugging RLM modules

2008-02-01 Thread Ali Majdzadeh
Hello All Is there any way to debug an RLM module using gdb? Kind Regards Ali Majdzadeh Kohbanani - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: A question about rlm modules

2007-10-27 Thread Ali Majdzadeh
Hello Alan Thanks for your reply. Would you please tell me whether the scenario is correct or not? 1) We obtain the clear text password in the authorization section of our module. 2) We populate the request-config_items with the clear text password. 3) The CHAP module authenticates the user using

Re: A question about rlm modules

2007-10-27 Thread Alan DeKok
Ali Majdzadeh wrote: Would you please tell me whether the scenario is correct or not? 1) We obtain the clear text password in the authorization section of our module. 2) We populate the request-config_items with the clear text password. 3) The CHAP module authenticates the user using the

A question about rlm modules

2007-10-25 Thread Ali Majdzadeh
Hello all I have written an rlm_module. It works fine. Here, we have clients which should be authenticated using CHAP passwords. In the radiusd.conf, I have mentioned my module before the CHAP module in the authentication section. Also, I have found that my module should populate the

Re: A question about rlm modules

2007-10-25 Thread Alan DeKok
Ali Majdzadeh wrote: I have written an rlm_module. It works fine. Here, we have clients which should be authenticated using CHAP passwords. In the radiusd.conf, I have mentioned my module before the CHAP module in the authentication section. Also, I have found that my module should populate the

Re: A question about rlm modules

2007-10-25 Thread Ali Majdzadeh
Hello Alan Yes, I am sure that the code works correctly, because the CHAP module accepts the clear text password which I have provided in the request-config_items. Below is my code for the authorize section of the module: static int netbill_authorize (void *instance, REQUEST *request) {

Re: A question about rlm modules

2007-10-25 Thread Alan DeKok
Ali Majdzadeh wrote: Hello Alan Yes, I am sure that the code works correctly, because the CHAP module accepts the clear text password which I have provided in the request-config_items. Below is my code for the authorize section of the module: That looks OK. Thu Oct 25 13:18:42 2007 :

problem installing RLM-Python installation in 1.7

2007-08-23 Thread UriCALL Support
Dear All, I grabbed today the sources for 1.7 distribution and wanted to compile the rlm_python also in, but, as opposite to 1.6 version, it looks like some libraries are not longer included, here are the errors: host1:/usr/local/src/freeradius/freeradius-1.1.7/src/modules/rlm_python# make

Re: problem installing RLM-Python installation in 1.7

2007-08-23 Thread Marc LEURENT
Did you succeed in compiling the rlm_python module statically in 1.6? And if I would be very grateful if you can explain me how? Because I'he got this error: rlm_python.c:456: warning: passing argument 2 of 'PyObject_GetAttrString' discards qualifiers from pointer target type gcc -g -O2

Re: problem installing RLM-Python - SOLVED

2007-08-23 Thread UriCALL Support
Sorry, my bad, I forgot that the lib files are generated during make process and missed that part. Marc, here is how I got it running: 1. Grab the sources and unpack them (1.1.7 version) 2. After unpacking, run from within the source folder: ./configure --with-static-modules=python

Re: problem installing RLM-Python installation in 1.7

2007-08-23 Thread Alan DeKok
UriCALL Support wrote: Dear All, I grabbed today the sources for 1.7 distribution and wanted to compile the rlm_python also in, but, as opposite to 1.6 version, it looks like some libraries are not longer included, here are the errors: 1.1.7, and 1.1.6. There are no 1.6 or 1.7

Re: problem installing RLM-Python installation in 1.7

2007-08-23 Thread A . L . M . Buxey
Hi, The solution (as almost always in these kind of situations) is to follow the documentation for the build process: $ configure for python, --with-experimental-modules alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: problem installing RLM-Python installation in 1.7 (Alan DeKok)

2007-08-23 Thread UriCALL Support
Hi there Alan, and thank you for your reply. I got the install now successfully without further issues. Regarding the version, I hope you understood me, since I am not really an accountant ;-). Will be more careful with numbers in the future. Got another question now that I have your

Re: problem installing RLM-Python - SOLVED

2007-08-23 Thread Nicolas Baradakis
UriCALL Support wrote: Marc, here is how I got it running: 1. Grab the sources and unpack them (1.1.7 version) 2. After unpacking, run from within the source folder: ./configure --with-static-modules=python make Sorry, it seems the file doc/rlm_python is 5 years old and is really

Re: problem installing RLM-Python - SOLVED

2007-08-23 Thread Alan DeKok
Nicolas Baradakis wrote: Sorry, it seems the file doc/rlm_python is 5 years old and is really outdated. It doesn't make sense to use --with-static-modules=python with current version of Python. As posted to the list, the correct configure line is: $ ./configure --with-experimental-modules

Re: problem installing RLM-Python installation in 1.7 (Alan DeKok)

2007-08-23 Thread Alan DeKok
UriCALL Support wrote: A while back we discussed some changes which would help me and other users in rlm_digest (moving the part commented as Loop through the Digest-Attributes, sanity checking them. from authenticate function into authorize one), without, at least from my limited point of

what do rlm mean ?

2007-08-14 Thread 郭红华
Can you tell me what rlm mean ? And where can I find informaion about it ? Thank you !- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: rlm-digest - devel question

2007-06-21 Thread Alan DeKok
UriCALL Support wrote: I have noticed that in latest versions of rlm_digest the part with converting of the attributes to something useful (DEBUG(rlm_digest: Converting Digest-Attributes to something sane...)) was moved from authorize section to authenticate section. There was even a

rlm-digest - devel question

2007-06-20 Thread UriCALL Support
Hi All, I have noticed that in latest versions of rlm_digest the part with converting of the attributes to something useful (DEBUG(rlm_digest: Converting Digest-Attributes to something sane...)) was moved from authorize section to authenticate section. There was even a discussion a while

Re: RLM Perl cache problem? (was: Freeradius-Users Digest, Vol 19, Issue 71)

2006-11-22 Thread david . suarezdelis
On Mon, 20 Nov 2006 08:22:33 -0800 Alan DeKok [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I have observed that once I have returned a Class attribute, though, it keeps getting sent by FreeRadius even when my authenticate() sub is not assigning to it. I'd be a little surprised if

Re: RLM Perl cache problem? (was: Freeradius-Users Digest, Vol 19, Issue 71)

2006-11-22 Thread Alan DeKok
[EMAIL PROTECTED] wrote: ... However, changing test1 user profile on the DB so it doesn't have a class attribute to send: ... And on freeradius -X: found interpetator at address 0xa90eee8 rlm_perl: Added pair Class = OU=tme; So... instrument your Perl code to see why it's adding that.

Question about rlm modules

2006-10-29 Thread Ali Majdzadeh
Hi allIs it possible to send Vendor Specific Attributes through an rlm module?I use the following method to send standard attributes through an rlm module:(As suggested by the template itself) reply = pairmake (User-Name, root, T_OP_EQ);pairadd (request-reply-vps, reply);request-reply-code

  1   2   >