def METHOD_NAME(self, configurationAttributes, requestParameters, step):
    authenticationService = CdiUtil.bean(AuthenticationService)
    if (step == 1):
        print "Radius. Authenticate for step 1"
        identity = CdiUtil.bean(Identity)
        credentials = identity.getCredentials()
        user_name = credentials.getUsername()
        user_password = credentials.getPassword()
        if StringHelper.isNotEmptyString(user_name ) and StringHelper.isNotEmptyString(user_password ):
        	user_exists_in_gluu = authenticationService.METHOD_NAME(user_name )
        	if user_exists_in_gluu :
        		client =  RadiusClient(self.RADIUS_SERVER_IP,int (self.RADIUS_SERVER_AUTH_PORT), int(self.RADIUS_SERVER_ACCT_PORT), self.RADIUS_SERVER_SECRET)
           		accessRequest = RadiusPacket(RadiusPacket.ACCESS_REQUEST)
        		userNameAttribute = RadiusAttribute(RadiusAttributeValues.USER_NAME,user_name )
 			userPasswordAttribute =  RadiusAttribute(RadiusAttributeValues.USER_PASSWORD,user_password )
        		accessRequest.setAttribute(userNameAttribute)
        		accessRequest.setAttribute(userPasswordAttribute)
 			accessResponse = client.METHOD_NAME(accessRequest)
 			print "Packet type - %s " % accessResponse.getPacketType()
 			if accessResponse.getPacketType() == RadiusPacket.ACCESS_ACCEPT:
         		return True
      #elif accessResponse.getPacketType() == RadiusPacket.ACCESS_CHALLENGE:
      #    	return False