original_string: function putAuthAttributes()
      {
          if (isset($this->username)) {
              $this->putAttribute(RADIUS_USER_NAME, $this->username);
          }
          if (isset($this->response) || isset($this->lmResponse)) {
              $lmResp = isset($this->lmResponse) ? $this->lmResponse : str_repeat ("\0", 24);
              $ntResp = isset($this->response)   ? $this->response :   str_repeat ("\0", 24);
              $resp = pack('CC', $this->chapid, $this->flags) . $lmResp . $ntResp;
              $this->putVendorAttribute(RADIUS_VENDOR_MICROSOFT, RADIUS_MICROSOFT_MS_CHAP_RESPONSE, $resp);
          }
          if (isset($this->challenge)) {
              $this->putVendorAttribute(RADIUS_VENDOR_MICROSOFT, RADIUS_MICROSOFT_MS_CHAP_CHALLENGE, $this->challenge);
          }
      }
code: function putAuthAttributes()
      {
          if (isset($this->username)) {
              $this->putAttribute(RADIUS_USER_NAME, $this->username);
          }
          if (isset($this->response) || isset($this->lmResponse)) {
              $lmResp = isset($this->lmResponse) ? $this->lmResponse : str_repeat ("\0", 24);
              $ntResp = isset($this->response)   ? $this->response :   str_repeat ("\0", 24);
              $resp = pack('CC', $this->chapid, $this->flags) . $lmResp . $ntResp;
              $this->putVendorAttribute(RADIUS_VENDOR_MICROSOFT, RADIUS_MICROSOFT_MS_CHAP_RESPONSE, $resp);
          }
          if (isset($this->challenge)) {
              $this->putVendorAttribute(RADIUS_VENDOR_MICROSOFT, RADIUS_MICROSOFT_MS_CHAP_CHALLENGE, $this->challenge);
          }
      }
code_tokens: function putAuthAttributes ( ) { if ( isset ( $ this -> username ) ) { $ this -> putAttribute ( RADIUS_USER_NAME , $ this -> username ) ; } if ( isset ( $ this -> response ) || isset ( $ this -> lmResponse ) ) { $ lmResp = isset ( $ this -> lmResponse ) ? $ this -> lmResponse : str_repeat ( "\0" , 24 ) ; $ ntResp = isset ( $ this -> response ) ? $ this -> response : str_repeat ( "\0" , 24 ) ; $ resp = pack ( 'CC' , $ this -> chapid , $ this -> flags ) . $ lmResp . $ ntResp ; $ this -> putVendorAttribute ( RADIUS_VENDOR_MICROSOFT , RADIUS_MICROSOFT_MS_CHAP_RESPONSE , $ resp ) ; } if ( isset ( $ this -> challenge ) ) { $ this -> putVendorAttribute ( RADIUS_VENDOR_MICROSOFT , RADIUS_MICROSOFT_MS_CHAP_CHALLENGE , $ this -> challenge ) ; } }
docstring: Put MS-CHAPv1 specific attributes
  
  For authenticating using MS-CHAPv1 via RADIUS you have to put the challenge
  and the response. The response has this structure:
  struct rad_mschapvalue {
  u_char ident;
  u_char flags;
  u_char lm_response[24];
  u_char response[24];
  };
  
  @return void
docstring_tokens: Put MS - CHAPv1 specific attributes