[chef] reg windows authenticate from linux


Chronological Thread 
  • From: indra < >
  • To:
  • Subject: [chef] reg windows authenticate from linux
  • Date: Thu, 06 Nov 2014 17:05:18 +0530

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", 
" ")

#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"," "
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.

§