System Administration Guide: Resource Management and Network Services

How to Add PAP Support to the PPP Configuration Files (Dial-out Machine)

This procedure uses the PPP configuration files that were introduced in How to Define Communications Over the Serial Line as examples. The procedure configures the dial-out machine that belongs to user2, as shown in Figure 30–3.

  1. Log in to the dial-out machine as superuser.

  2. Modify the /etc/ppp/options file.

    The next /etc/ppp/options file contains options for PAP support, which are shown in bold.


    #vi /etc/ppp/options
    lock
    nodefaultroute
    name user2
    auth
    require-pap
    

    name user2

    Sets user2 as the PAP name of the user on the local machine. If the login option is used, the PAP name must be the same as the user's UNIX user name in the password database.

    auth

    States that the dial-out machine must authenticate callers before establishing the link. 

    require-pap

    Requires peers to provide PAP credentials when returning the call from the dial-out machine. 

  3. Create an /etc/ppp/peers/peer-name file for the remote machine myserver.

    The next sample shows how to add PAP support to the existing /etc/ppp/peers/myserver file that was created in How to Define the Connection With an Individual Peer.


    # cd /etc/ppp
    # mkdir peers
    # cd peers
    # vi myserver
    /dev/cua/a
    57600
    noipdefault
    defaultroute
    idle 120
    user user2
    remotename myserver
    connect "chat -U 'mypassword' -f /etc/ppp/mychat"

    The new options in bold add PAP requirements for peer myserver.

    user user2

    Defines user2 as the user name of the local machine

    remotename myserver

    Defines myserver as a peer that requires authentication credentials from the local machine

Where to Go From Here

Task 

For Instructions 

Test the PAP authentication setup by calling the dial-in server 

Procedures for calling the dial-in server, How to Call the Dial-in Server

Learn more about PAP authentication 

Password Authentication Protocol (PAP)