s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
Next
Previous
Contents
4. Note about authentication
When you connect to an Internet Services Provider, it is usually necesary that you send an username and a password. This can be accomplished using several methods; the exact method that you use is determined by your provider. Added to the three shown options, you can use a link without authentication, (generally when the remote end is also yours).
4.1 Username and password - Login and password prompts.
Actually, this is not an usual authentication method to access the Internet through an ISP. Identification is made before An example script for
The last 2 lines define username and password, and when to send it (after receiving «ogin» and «assword» respectively. The chat script only needs to see parts of the words «login» and «password» and so we don't check the first letter of each. This is so that we don't need to worry about uppercase/lowercase characters. Suppose that this script is called
4.2 PAP - Password Authentication Protocol
If the provider you are using requires PAP as the authentication protocol,
during the LCP negotiation in PPP this protocol will be asked to use this
protocol. When the phone call is connected after using PAP is not very secure, as the password is sent in plaintext, so can be read by somebody that monitors your transmission line. Simple example of
4.3 CHAP - Challenge Authentication Protocol
If the provider you are using requires CHAP as the authentication protocol,
during the LCP negotiation in PPP this protocol will be asked to use this
protocol. When the phone call is connected after using CHAP is more secure than PAP, as the password is never sent through the transmission line in plaintext. The authentication server sends a random identifier (the challenge), that the client must encrypt with its password, and then send back to the server. Simple example of
Sometimes an ISP uses PAP and other times CHAP, so it is common to define your username and password in both files.
Next Previous Contents |