Grab request password with ASCII character
Hi Alll i need to Grab request password to insert in database if Cleartext-Password is "import" so i write this unlang script in authenticate section : Auth-Type PAP { pap { reject = 1 } if (reject) { if ("%{control:Cleartext-Password}"=="import" ) { ok update control { password-import = "%{sql:SELECT change_impoprt_password ('%{User-Name}'::varchar,'%{User-Password}'::varchar)}" Log-State := "New Password Is Imported" } } else { if (("%{control:Bad-Password-Pool}") && ("%{control:Bad-Password-Pool}" != "" ) ) { ok update control { Auth-Type := "Accept" Pool-Name := "%{control:Bad-Password-Pool}" Log-State := "PAP Password Is Not Correct" } update reply { Reply-Message = "Your Password in not correct in system" } } else { update control { Log-State := "PAP Password Is Not Correct - Reject" Auth-Type := "Reject" } update reply { Reply-Message := "Your Password in not correct in system" } } } ok } } but if user use symbols like ! @#& or any character that is based on ASCII character i can not get real password character for example : import password is : "test!@#" request:user-password is : "test=21@=23" do we have any way to get or convert request:user-password to none ASCII .
hi, are you one person or a while team? looking through my emails you have asked multiple questins every day. thsi seems like a big project you are tackling here but using the users mailing list for all your help/advice. thats abuse. alan
dear A.L.M.Buxe first one that is not huge that is one NAS in local network . and i have just 4 question in general and in all of them i read , test and try by any document that be available for freeradius first. but if my question nuisance you , i apologize for that . On Mon, Apr 29, 2013 at 6:18 PM, <A.L.M.Buxey@lboro.ac.uk> wrote:
hi,
are you one person or a while team? looking through my emails you have asked multiple questins every day. thsi seems like a big project you are tackling here but using the users mailing list for all your help/advice. thats abuse.
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Mehdi Ravanbakhsh wrote:
first one that is not huge that is one NAS in local network . and i have just 4 question in general and in all of them i read , test and try by any document that be available for freeradius first.
but if my question nuisance you , i apologize for that .
Don't apologize. Instead, do more work for yourself. You're asking a LOT of questions. Most of those questions show you haven't bothered to read or think about the existing documentation. That's a problem. If you don't care enough to do any work, then we won't do any work to help you. You're trying to build a large complicated system. But you're not prepared to understand what you're building. So... your system probably won't work. Alan DeKok.
Dear Alan DeKok *in first :i am work hard on this project , and be sure that there is a lot of subject (problem ) that i solve myself and if you check my Previous question i find answer myself* * and send it to mailing list for any one Perhaps need to know.* * * *in second : i ask question if and even if i found any information about that question and it not work in my test. something like multiply Cisco-AVpair in request .* * * *and thanks for your suggestion .* * * *Best regards.* * * * * * * * * * * On Mon, Apr 29, 2013 at 6:58 PM, Alan DeKok <aland@deployingradius.com>wrote:
Mehdi Ravanbakhsh wrote:
first one that is not huge that is one NAS in local network . and i have just 4 question in general and in all of them i read , test and try by any document that be available for freeradius first.
but if my question nuisance you , i apologize for that .
Don't apologize. Instead, do more work for yourself.
You're asking a LOT of questions. Most of those questions show you haven't bothered to read or think about the existing documentation.
That's a problem. If you don't care enough to do any work, then we won't do any work to help you.
You're trying to build a large complicated system. But you're not prepared to understand what you're building.
So... your system probably won't work.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Mehdi Ravanbakhsh