[pptp-server] chapms-strip-domain and ppp-2.4

rathore at bilo.icns.com rathore at bilo.icns.com
Mon Sep 24 06:44:34 CDT 2001


Hi
I installed ppp-2.4.0 with strip-MSdomain-patch.diff (made against
ppp-2.3.11) it patches successfully and compiles. I do see it stripping
domain "XXX\\" from rhostname "XXX\\username" right after:

if (strrchr(rhostname, '\\') && chapms_strip_domain) {
        strcpy(tmp, strrchr(rhostname, '\\') + 1);
        strcpy(rhostname, tmp);
    }

But the authentication fails:

 probably because the Chalange is encrypted
using "XXX\\usename" and stripping "XXX\\" doesnt work. I do not have a
machine that will stick a domain name to the username so I am only
simulating it by typing "XXX\username" instead of "username". Note that
only typing "username" does authenticate successfully.

Here is the log  ("Im here mawali" is a warn() that I have put in to see
if it was stripping OK)

Sep 24 17:29:00 mawali pppd[26100]: sent [CHAP Challenge id=0x1
<55bf26bb0ce89df41ab74f04fc684499>, name = "*"]
Sep 24 17:29:00 mawali pppd[26100]: rcvd [CHAP Response id=0x1
<3cb4587524c86b5728bd47e71e586674000000000000000079d8a2afdaab1012ae9444c33cb1d6f59a8f7bb62715f28d04>,
name = "home\\mawali"]
Sep 24 17:29:00 mawali pppd[26100]: Im here. "mawali"
Sep 24 17:29:00 mawali pppd[26100]: sent [CHAP Failure id=0x1 "I don't
like you.  Go 'way."]
Sep 24 17:29:00 mawali pppd[26100]: MSCHAP-v2 peer authentication failed
for remote host mawali
Sep 24 17:29:00 mawali pppd[26100]: sent [LCP TermReq id=0x2
"Authentication failed"]

Here is if i dont use "XXX\"

Sep 24 17:29:09 mawali pppd[26102]: sent [CHAP Challenge id=0x1
<0c2856905cfe7f47ed5c8ff6def820cd>, name = "*"]
Sep 24 17:29:09 mawali pppd[26102]: rcvd [CHAP Response id=0x1
<b86ac9e21131f4208175b5ae2b320374000000000000000022823e7a13389cfe54bb3fbd266ed6bc0994e2e9d8b53f5204>,
name = "mawali"]
Sep 24 17:29:09 mawali pppd[26102]: sent [CHAP Success id=0x1
"S=D262D372D9B7171106AB40DBF55CBEB93B6AE12D"]



Any Ideas???





More information about the pptp-server mailing list