Do a case insensitive comparison when comparing the ms-chap response
string.
This commit is contained in:
parent
32585dd617
commit
541e4966fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100916
@ -928,7 +928,7 @@ chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp)
|
||||
if (p->link.lcp.auth_ineed == 0) {
|
||||
#ifndef NODES
|
||||
if (p->link.lcp.his_authtype == 0x81) {
|
||||
if (strncmp(ans, chap->authresponse, 42)) {
|
||||
if (strncasecmp(ans, chap->authresponse, 42)) {
|
||||
datalink_AuthNotOk(p->dl);
|
||||
log_Printf(LogWARN, "CHAP81: AuthenticatorResponse: (%.42s)"
|
||||
" != ans: (%.42s)\n", chap->authresponse, ans);
|
||||
|
Loading…
Reference in New Issue
Block a user