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