Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issue with getting WinRM to work on a Windows Machine #28

Closed
chirag-jog opened this Issue · 2 comments

2 participants

@chirag-jog

Currently i am trying to get WinRM (essentially knife-windows) to work on a Windows machine so as to communicate with another Windows machine. I have setup the MIT Kerberos 32-bit/64-bit libraries as well as the Heimdal 32-bit/64-bit on the Windows machine.

It seems that the ffi library cannot find the gss_wrap_iov and gss_unwrap_iov functions in either of these libraries although they work on Linux.

MIT Kerberos:

irb(main):019:0> ffi_lib 'C:\Program Files (x86)\MIT\Kerberos\bin\gssapi32.dll'
=> [#FFI::DynamicLibrary:0x263b5a8]
attach_function :gss_wrap_iov, [:pointer, :pointer, :int, :OM_uint32, :pointer, :pointer, :int], :OM_uint32

FFI::NotFoundError: Function 'gss_wrap_iov' not found in [C:\Program Files (x86)\MIT\Kerberos\bin\gssapi32.dll]
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:249:in attach_function'
from (irb):21
from C:/opscode/chef/embedded/bin/irb:12:in

'

Heimdal :

ffi_lib 'C:\Program Files (x86)\Heimdal\bin\gssapi32.dll'
[#FFI::DynamicLibrary:0x25101f0]
attach_function :gss_wrap_iov, [:pointer, :pointer, :int, :OM_uint32, :pointer, :pointer, :int], :OM_uint32

FFI::NotFoundError: Function 'gss_wrap_iov' not found in [C:\Program Files (x86)\Heimdal\bin\gssapi32.dll]
from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ffi-1.0.11/lib/ffi/library.rb:249:in attach_function'
from (irb):18
from C:/opscode/chef/embedded/bin/irb:12:in

'

It would be great if you can share your thoughts as well any suggestions you might have.

@pmorton
Owner

@chirag-jog Are you still working on this issue. If so I would consider opening a bug on the GSSAPI gem. It would seem to me that either the GSSAPI gem is not compatible with windows or your environment does not have a more recent kerberos implementation. If you are looking to get authentication going on windows I suggest that you take a look at https://github.com/m4dc4p/rubysspi/blob/master/lib/win32/sspi.rb.

Related to #23

I am open to pull requests.

@pmorton
Owner

I am going to close this and leave open the Milestone item #37

@pmorton pmorton closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.