Attribute MS-CHAP-Error
Hi all, Before Freeradius 3, I could sucessfully log the attribute Module-Failure-Message to catch many errors of ntlm_auth. In Freeradius 3 , if a user must change his password, the Module-Failure-Message return nothing (it doesn't yet exist ) Maybe it's with the new support of Change password in module mschap ??! My question is, how I can catch this error ? I try with the attribute MS-CHAP-Error but it the same result In log below, attribute doesn't yet exist when I try to catch him (16) log_mschap_error log_mschap_error { (16) ? if (MS-CHAP-Error =~ /.*Password expired.*/i) (16) ERROR: Failed retrieving values required to evaluate condition (16) } # log_mschap_error log_mschap_error = updated (16) } # Post-Auth-Type REJECT = updated } # server inner-tunnel (16) eap_peap : Got tunneled reply code 3 MS-CHAP-Error = '\tE=648 R=0 C=6833f9aa49b2f6bcc7dd53241f906cc7 V=3 M=Password Expired' EAP-Message = 0x04090004 Message-Authenticator = 0x00000000000000000000000000000000 (16) eap_peap : Got tunneled reply RADIUS code 3 MS-CHAP-Error = '\tE=648 R=0 C=6833f9aa49b2f6bcc7dd53241f906cc7 V=3 M=Password Expired' EAP-Message = 0x04090004 Message-Authenticator = 0x00000000000000000000000000000000 Thanks.
On 21 Jan 2014, at 12:59, nicolas.clo@ricoh-industrie.fr wrote:
Hi all,
Before Freeradius 3, I could sucessfully log the attribute Module-Failure-Message to catch many errors of ntlm_auth.
In Freeradius 3 , if a user must change his password, the Module-Failure-Message return nothing (it doesn't yet exist ) Maybe it's with the new support of Change password in module mschap ??!
My question is, how I can catch this error ?
I try with the attribute MS-CHAP-Error but it the same result
In log below, attribute doesn't yet exist when I try to catch him
Can you please provide the full debug... -Arran Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
nicolas.clo@ricoh-industrie.fr wrote:
In Freeradius 3 , if a user must change his password, the Module-Failure-Message return nothing (it doesn't yet exist ) Maybe it's with the new support of Change password in module mschap ??!
It should work. What does the debug log say?
In log below, attribute doesn't yet exist when I try to catch him
(16) log_mschap_error log_mschap_error { (16) ? if (MS-CHAP-Error =~ /.*Password expired.*/i) (16) *ERROR: Failed retrieving values required to evaluate condition*
OK... MS-CHAP-Error doesn't exist.
(16) eap_peap : Got tunneled reply code 3 * MS-CHAP-Error = '\tE=648 R=0 C=6833f9aa49b2f6bcc7dd53241f906cc7 V=3 M=Password Expired'*
Note "reply". What is the syntax to refer to an attribute in the reply list? See "man unlang". Hint: it's not MS-CHAP-Reply. Alan DeKok.
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
nicolas.clo@ricoh-industrie.fr