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 );
    }
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 );
    }
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 ) ; }
Generates an NTLM type 1 message.

@param string $workstation
@param string $domain
@return string
Generates an NTLM type 1 message .