|
RadiusClientAuthenticate(String, String, Byte) Method
|
Authenticates the username and password against the RADIUS server.
Namespace: GSF.Communication.RadiusAssembly: GSF.Communication (in GSF.Communication.dll) Version: 2.4.207-beta
Syntax function Authenticate(username, password, state);
View SourceParameters
- username String
- Username to be authenticated.
- password String
- Password to be authenticated.
- state Byte
- State value from a previous challenge response.
Return Value
RadiusPacketResponse packet received from the server for the authentication request.
Remarks
The type of response packet (if any) will be one of the following:
- AccessAccept: If the authentication is successful.
- AccessReject: If the authentication is not successful.
- AccessChallenge: If the server need more information from the user.
When an AccessChallenge response packet is received from the server, it contains a State attribute
that must be included in the AccessRequest packet that is being sent in response to the AccessChallenge
response. So if this method returns an AccessChallenge packet, then this method is to be called again
with the requested information (from ReplyMessage attribute) in the password field and the value State
attribute.
See Also