Thilo Riessner | 6 Sep 2006 14:45
Picon

serial device access from welcome script

From a program called by the welcome script which tries to access the serial 
port (in this case /dev/ttyI0) I get the errormessage:
	Port or socket open error!
I guess, that the serial port is blocked by the pppd.
Is there any possibility to access the serial port nevertheless?
Thanks for any help

Thilo
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Thilo Riessner | 6 Sep 2006 14:53
Picon

serial device access from welcome script

From a program called by the welcome script which tries to access the serial 
port (in this case /dev/ttyI0) I get the errormessage:
        Port or socket open error!
I guess, that the serial port is blocked by the pppd.
Is there any possibility to access the serial port nevertheless?
Thanks for any help

Thilo
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Carlson | 6 Sep 2006 23:53

Re: serial device access from welcome script

Thilo Riessner writes:
> >From a program called by the welcome script which tries to access the serial 
> port (in this case /dev/ttyI0) I get the errormessage:
>         Port or socket open error!
> I guess, that the serial port is blocked by the pppd.
> Is there any possibility to access the serial port nevertheless?

You shouldn't be trying to access the port directly.  Instead, when
the "welcome" script runs, your script's standard input and standard
output are connected directly to the tty.

You should be able to use 'read' and 'echo' (or whatever your
scripting language supports) without having to open anything.

This is true for "connect", "disconnect", "init", and "pty" as well.

--

-- 
James Carlson         42.703N 71.076W         <carlsonj <at> workingcode.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Pieter Loubser | 7 Sep 2006 08:45
Favicon

Re: serial device access from welcome script


Have you removed the "lock" option from your ppp options file
(/etc/ppp/options)?

> >From a program called by the welcome script which tries to access the serial 
> port (in this case /dev/ttyI0) I get the errormessage:
> 	Port or socket open error!
> I guess, that the serial port is blocked by the pppd.
> Is there any possibility to access the serial port nevertheless?
> Thanks for any help
> 
> Thilo
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to majordomo <at> vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Carlson | 7 Sep 2006 13:59

Re: serial device access from welcome script

Pieter Loubser writes:
> 
> Have you removed the "lock" option from your ppp options file
> (/etc/ppp/options)?

The "lock" option only creates UUCP advisory lock files; it doesn't
actually prevent access to the serial port.

--

-- 
James Carlson         42.703N 71.076W         <carlsonj <at> workingcode.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Ludovic MARCILLY | 11 Sep 2006 14:34
Picon

Authentication problems

Hi all,

I try to use linux pptp client in order to connect to a Windows 2003
Server but without any success.

When i try to connect without authentication, it seems to work. So i
try with PAP, CHAP, MSCHAP and MSCHAPv2 but it doesn't work.

Here are my logs for a test with PAP:

Sep 11 11:56:17 LinuxBox kernel: MPPE/MPPC encryption/compression
module unregistered
Sep 11 11:56:17 LinuxBox kernel: CSLIP: code copyright 1989 Regents of
the University of California
Sep 11 11:56:17 LinuxBox kernel: PPP generic driver version 2.4.2
Sep 11 11:56:17 LinuxBox kernel: PPP BSD Compression module registered
Sep 11 11:56:17 LinuxBox kernel: PPP Deflate Compression module
registered
Sep 11 11:56:17 LinuxBox kernel: MPPE/MPPC encryption/compression
module registered
Sep 11 11:56:17 LinuxBox pppd[1834]: pppd 2.4.2 started by root, uid 0
Sep 11 11:56:17 LinuxBox pptp[1838]: anon log[main:pptp.c:243]: The
synchronous pptp option is NOT activated
Sep 11 11:56:17 LinuxBox pppd[1834]: using channel 1
Sep 11 11:56:17 LinuxBox pppd[1834]: Using interface ppp0
Sep 11 11:56:17 LinuxBox pppd[1834]: Connect: ppp0 <--> /dev/pts/2
Sep 11 11:56:17 LinuxBox pptp[1841]: anon
log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 1
'Start-Control-Connection-Request'
Sep 11 11:56:17 LinuxBox pptp[1841]: anon
(Continue reading)

Bill Unruh | 11 Sep 2006 19:35
Picon
Picon

Re: Authentication problems

So why are you asking the server to authenticate to you using pap? 
Almost no server will do so.
Get rid of the auth-pap or +pap from your options. 
That is NOT without authentication. The  far side demands that you
authenticate to them anyway.

On Mon, 11 Sep 2006, Ludovic MARCILLY wrote:

> Hi all,
>
> I try to use linux pptp client in order to connect to a Windows 2003
> Server but without any success.
>
> When i try to connect without authentication, it seems to work. So i
> try with PAP, CHAP, MSCHAP and MSCHAPv2 but it doesn't work.

Why?

>
> Here are my logs for a test with PAP:
>
> Sep 11 11:56:18 LinuxBox pppd[1834]: sent [LCP ConfReq id=0x1 <asyncmap
> 0x0> <auth pap> <magic 0x9bb62805> <pcomp> <accomp>]

YOu ask them to authenticate to you using pap.

> Sep 11 11:56:21 LinuxBox pppd[1834]: rcvd [LCP ConfReq id=0x0 <mru
> 1400> <auth pap> <magic 0x309a32f4> <pcomp> <accomp> <callback CBCP>
> <mrru 1614> <endpoint
> [local:21.c5.a8.4c.e7.20.49.3d.a3.30.be.d2.48.a0.d6.b3.00.00.00.00]> <
(Continue reading)

Ludovic MARCILLY | 12 Sep 2006 09:57
Picon

Re-2: Authentication problems


First of all, thank you for your answer! Now it works. In fact, i have put the
auth-pap in my config files because i think i have to put it in order to
authenticate me to the server with pap. It seems that i was wrong...

So i can't put these options in the config file on the client side? If i
understand, he server ask the client for PAP, CHAP or MS-CHAP method to
authenticate? The client doesn't choose authentication method? Is it right?

Thanks for your answer.

Ludo.

-------- Original Message --------
Subject: Re: Authentication problems (11-Sep-2006 19:43)
From:     unruh <at> physics.ubc.ca
To:         lmarcilly <at> aressi.fr

So why are you asking the server to authenticate to you using pap? 
Almost no server will do so.
Get rid of the auth-pap or +pap from your options. 
That is NOT without authentication. The  far side demands that you
authenticate to them anyway.

On Mon, 11 Sep 2006, Ludovic MARCILLY wrote:

> Hi all,
>
> I try to use linux pptp client in order to connect to a Windows 2003
> Server but without any success.
(Continue reading)

Gilles Espinasse | 12 Sep 2006 10:17
Picon
Favicon

Re: Re-2: Authentication problems

Selon Ludovic MARCILLY <lmarcilly <at> aressi.fr>:

>
> First of all, thank you for your answer! Now it works. In fact, i have put
> the
> auth-pap in my config files because i think i have to put it in order to
> authenticate me to the server with pap. It seems that i was wrong...
>
> So i can't put these options in the config file on the client side? If i
> understand, he server ask the client for PAP, CHAP or MS-CHAP method to
> authenticate? The client doesn't choose authentication method? Is it right?
>
If one authentication is not configured on the client side, pppd will answer
with a nak on the request and could offer another authentication method if
available (that the server may or not accept).

If one authentication method is configured on the client side but you don't want
this method to be used, add -chap or -pap for example respectively to your
options.

Gilles
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Thilo Riessner | 7 Sep 2006 16:44
Picon

Re: serial device access from welcome script

Am Mittwoch, 6. September 2006 23:53 schrieben Sie:
> Thilo Riessner writes:
> > >From a program called by the welcome script which tries to access the
> > > serial
> >
> > port (in this case /dev/ttyI0) I get the errormessage:
> >         Port or socket open error!
> > I guess, that the serial port is blocked by the pppd.
> > Is there any possibility to access the serial port nevertheless?
>
> You shouldn't be trying to access the port directly.  Instead, when
> the "welcome" script runs, your script's standard input and standard
> output are connected directly to the tty.
>
> You should be able to use 'read' and 'echo' (or whatever your
> scripting language supports) without having to open anything.
>
> This is true for "connect", "disconnect", "init", and "pty" as well.
Thanks for your hint, but I have the problem, that the program (which is a 
binary program) I am running out of my welcome script (which is a bash 
script) does not support the usage of stdin and stdout, but it demands the 
usage of a device for reading and writing. Is there a trick that I could use 
in the  welcome script to  redirect stdin and stdout to a "device" and use 
that device in the program, which is called from the welcome script.
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)


Gmane