diff --git a/lib/winrm/connection_opts.rb b/lib/winrm/connection_opts.rb index 313bf19c..97219ccb 100644 --- a/lib/winrm/connection_opts.rb +++ b/lib/winrm/connection_opts.rb @@ -68,8 +68,8 @@ def validate_required_fields if self[:client_cert] raise 'path to client key is required' unless self[:client_key] else - raise 'user is a required option' unless self[:user] - raise 'password is a required option' unless self[:password] + raise 'user is a required option' unless self[:transport] == :kerberos + raise 'password is a required option' unless self[:transport] == :kerberos end end