<div dir="ltr"><div><div><div><div><div>Hi Alll<br><br></div>i need to Grab request password to insert in database if Cleartext-Password is "import" so i write this unlang script in authenticate section :<br><br>
<span style="color:rgb(116,27,71)"><br>Auth-Type PAP {<br> pap {<br> reject = 1<br> }<br> if (reject) {<br> <br> if ("%{control:Cleartext-Password}"=="import" ) {<br>
<br> ok<br> update control {<br> <span style="color:rgb(0,0,0)"><span style="background-color:rgb(217,234,211)"> password-import = "%{sql:SELECT change_impoprt_password ('%{User-Name}'::varchar,'%{User-Password}'::varchar)}"</span></span><br>
Log-State := "New Password Is Imported"<br> }<br> <br> }<br><br> else {<br> <br> if (("%{control:Bad-Password-Pool}") && ("%{control:Bad-Password-Pool}" != "" ) ) {<br>
<br> ok<br> <br> update control {<br> Auth-Type := "Accept"<br> Pool-Name := "%{control:Bad-Password-Pool}"<br>
Log-State := "PAP Password Is Not Correct"<br> }<br> update reply {<br> Reply-Message = "Your Password in not correct in system"<br>
}<br> <br><br> }<br> else {<br><br> update control {<br> Log-State := "PAP Password Is Not Correct - Reject"<br>
Auth-Type := "Reject"<br> } <br> update reply {<br> Reply-Message := "Your Password in not correct in system"<br>
} <br><br> }<br> }<br> ok<br> }<br> }</span><br><br><br></div>but if user use symbols like ! @#& or any character that is based on ASCII character i can not get real password character for example :<br>
<br></div>import password is : "test!@#"<br></div>request:user-password is : "test=21@=23"<br><br></div>do we have any way to get or convert request:user-password to none ASCII .<br></div>