Package: ppp
Version: 2.4.6-2
Severity: normal

Hi Marco,

I stumbled upon the issue, that the example for a client configuration in pap-
secrets is wrong.

It seems that, at least on my system, the example cannot work because it is a)
syntactically wrong and b) a template substitution does not work correctly.


The Variable HOST is empty, thus the placeholder -HOSTNAME- is replaced with
the empty string.


I think one can get rid of the template completely and just include a static
example (see below), also for the following other 'issues':

It seems, that a newly created file will not contain the line #GENERATED-BY-
DEBIAN-INSTALLER# - such that an update will not regenerate the file - at least
the version installed on my system does not, as the source file does not
contain that tag.

Furthermore it seems strange to me, that the postinstall script is creating
temporary files with a fixed name in /etc/ppp without checking first if they
already exist.


Then, finally, I found that the format should be something like that:

# Secrets for authentication using PAP
# client        server  secret          acceptable local IP addresses
fred            *       flintstone

and not as the example text in the pap-secrets file suggests:

# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.

#-HOSTNAME-       *       password

So -HOSTNAME- -- the variable not being replaced - should really by the
username, right?

I suggest something along this, note that it does not include the last line:

# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name you probably
# do not know. Just replace <password> with your password and <login>
# with the login at your ISP.

# Secrets for authentication using PAP
# client        server  secret
<login> *               <password>


cheers,
  Florian






-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ppp depends on:
ii  init-system-helpers  1.18
ii  libc6                2.18-7
ii  libpam-modules       1.1.8-3
ii  libpam-runtime       1.1.8-3
ii  libpam0g             1.1.8-3
ii  libpcap0.8           1.5.3-2
ii  procps               1:3.3.9-2

ppp recommends no packages.

ppp suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to