[chef] Re: reg windows authenticate from linux


Chronological Thread 
  • From: Indra k < >
  • To: " " < >
  • Subject: [chef] Re: reg windows authenticate from linux
  • Date: Thu, 6 Nov 2014 20:35:33 +0800

Also  i tried like this ,

require 'rack-ntlm'
require 'net-ldap'
require 'rubyntlm'

Rack::Ntlm.new( 
    :uri_pattern => //,
    :host => '172.16.1.197',
    :port =>  389,
    :auth => {
    :username => 'administrator',
    :password => ' '
  }
) do
            puts "hh"
            return true,"success"
end


From: indra < >
To:
Sent: Thursday, 6 November 2014 5:05 PM
Subject: [chef] reg windows authenticate from linux

Hi all,

  i ve tried like this for authenticating windows from linux l=using
ntlm,any error please correct me,how can i know whether it get
authenticate a target instance or not.I instslled gem pyu-ntlm-http and
httpi-ntlm and ruby-ntlm.

require 'httpi-ntlm'
#request = HTTPI::Request.new("http://172.16.1.197")
#request.auth.ntlm("administrator", " " href="mailto: " class="" style=""> ")

#puts request,"connect1"
#response = HTTPI.get request
#puts response.body
request = HTTPI::Request.new
puts "conn1"
request.url = "http://172.16.1.197"
request.auth.ntlm "administrator"," " href="mailto: " class="" style=""> "
puts "authen"
request.headers["Content-Type"] = "text/xml; charset=UTF-8"
request.headers["SOAPAction"] = "Get"
#request.body = formatted_soap_body
puts "conn2"
response = HTTPI.post(request)

Thanks & regards,
Indra K





Archive powered by MHonArc 2.6.16.

§