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:

Re: Fwd: rlm-perl lc usernames

2008-09-19 Thread tnt
Print out the username after it was altered. You have an example of writing to radlog in example.pl: http://wiki.freeradius.org/Rlm_perl Than you will know it was(n't) perl. Ivan Kalik Kalik Informatika ISP Dana 19/9/2008, Charlie B [EMAIL PROTECTED] piše: Nobody :( have any tidbits to help