Indra_k
November 6, 2014, 11:35am
1
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”, “p@ssw0rd1”)
#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”,"p@ssword1"
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
Indra_k
November 6, 2014, 12:35pm
2
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 => ‘p@ssw0rd1’
}
) do
puts "hh"
return true,"success"
end
From: indra indra.k@cloudenablers.com
To: chef@lists.opscode.com
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”, “p@ssw0rd1”)
#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”,"p@ssword1"
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
----- Forwarded Message -----
From: Indra k indra.k@cloudenablers.com
To: "chef@lists.opscode.com " chef@lists.opscode.com
Sent: Thursday, 6 November 2014 6:05 PM
Subject: Re: [chef] reg windows authenticate from linux
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 => ‘p@ssw0rd1’
}
) do
puts "hh"
return true,"success"
end
From: indra indra.k@cloudenablers.com
To: chef@lists.opscode.com
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”, “p@ssw0rd1”)
#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”,"p@ssword1"
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