Click or drag to resize

RadiusClientAuthenticate(String, String, Byte) Method

Authenticates the username and password against the RADIUS server.

Namespace: GSF.Communication.Radius
Assembly: GSF.Communication (in GSF.Communication.dll) Version: 2.4.207-beta
Syntax
public RadiusPacket Authenticate(
	string username,
	string password,
	byte[] state
)
View Source

Parameters

username  String
Username to be authenticated.
password  String
Password to be authenticated.
state  Byte
State value from a previous challenge response.

Return Value

RadiusPacket
Response 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