Le 01-11-2013 17:50, Gruel Bruno a écrit :
Le 18-10-2013 6:18, YASUOKA Masahiko a écrit :
Hi,
On Wed, 16 Oct 2013 21:10:25 +0200
Gruel Bruno <b.gr...@sdnet.info> wrote:
As i thought that it's doesn't read my users file i changed the
username & password but nothing else.
Yes, the log shows the session is terminated because the passwords are
mismatched.
I checked by below snapshots, but I could not repeat the problem.
OpenBSD 5.4-current (GENERIC) #77: Sun Oct 13 17:27:52 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
OpenBSD 5.4-current (GENERIC) #66: Sun Oct 13 15:54:12 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
Can you try again with below patch? I'd like to get log for debug.
Index: npppd/pap.c
===================================================================
RCS file: /cvs/openbsd/src/usr.sbin/npppd/npppd/pap.c,v
retrieving revision 1.7
diff -u -p -r1.7 pap.c
--- npppd/pap.c 18 Sep 2012 13:14:08 -0000 1.7
+++ npppd/pap.c 18 Oct 2013 04:06:27 -0000
@@ -341,7 +341,11 @@ pap_local_authenticate(pap *_this, const
pap_response(_this, 1, DEFAULT_SUCCESS_MESSAGE);
return;
}
- }
+ pap_log(_this, LOG_INFO, "password mismatch %s<>%s",
+ password, password0);
+ } else
+ pap_log(_this, LOG_INFO, "could not get password for %s",
+ username);
pap_response(_this, 0, DEFAULT_FAILURE_MESSAGE);
}
Hye,
Sorry for the delay :/.
I just apply your patch and done somes tests.
There is my log (and it's explicit):
2013-11-01 17:34:38:INFO: ppp id=0 layer=pap password mismatch toto<>
2013-11-01 17:34:38:ALERT: ppp id=0 layer=pap logtype=Failure
username="toto" realm=LOCAL
#nppp-users file
toto:\
:password=toto:\
:framed-ip-address=10.0.0.101
client side hostname.pppoe0:
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev em0 authproto pap \
authname 'toto' authkey 'toto' up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1
I tried with different passwords but i get the same error.
My npppd-users file is wrong ?
Yes my npppd-users files was wrong .
like this is better
toto:\
:password=toto:\
:framed-ip-address=10.0.0.101:
sorry for the noise.
Bruno