This procedure uses as examples the PPP configuration files that were introduced in How to Define Communications Over the Serial Line. The procedure configures the dial-out machine that belongs to user2, as shown in Figure 16–3.
Log in to the dial-out machine as superuser.
Modify the /etc/ppp/options file.
The next /etc/ppp/options file contains options for PAP support, which are shown in bold.
# cat /etc/ppp/options lock name user2 auth require-pap |
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.
States that the dial-out machine must authenticate callers before establishing the link.
This dial-out machine demands authentication from its peers, even though most dial-out machines do not make this demand. Either way is acceptable.
Create an /etc/ppp/peers/peer-name file for the remote machine myserver.
The next example 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.
# cat /etc/ppp/peers/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.
Defines user2 as the user name of the local machine
Defines myserver as a peer that requires authentication credentials from the local machine
The following list provides references to related information.
To test the PAP authentication setup by calling the dial-in server, see How to Call the Dial-in Server.
To learn more about PAP authentication, see Password Authentication Protocol (PAP).