protected function authNtlmMessageType1( $workstation, $domain )
    {
        $parts = array(
                        "NTLMSSP\x00",
                        "\x01\x00\x00\x00",
                        "\x07\x32\x00\x00",
                        $this->authNtlmSecurityBuffer( $domain, 32 + strlen( $workstation ) ),
                        $this->authNtlmSecurityBuffer( $workstation, 32 ),
                        $workstation,
                        $domain
                      );

        return implode( "", $parts );
    }