Technical article 110200

PPP CHAP authentication fails if "secret" field contains "#" character.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

Using CHAP authentication, I have put my account name and "secret"
(password) in /etc/pppauth (SCO PPP) or /usr/lib/mstppp/Auth
(Morning Star PPP), but PPP negotiation fails when my secret is
sent.  There is a "#" character in my secret.

Cause

The "#" is treated as a comment, and the rest of the line is not sent.

Solution

You must escape the "#" character for this secret to work.  For
instance, if your Auth (or pppauth) file looked like this
originally:
ppp-out             #x%!f=3&Ruu

it should look like this after escaping the "#":

ppp-out             \#x%!f=3&Ruu

Note: All "#" characters must be escaped this way, not just the first one.

From the Xinuos technical article database, record 110200. Reproduced with permission. The original is at www.sco.com/ta/110200, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.