You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: I create a site_credential object, then run the "test" function on them and receive this response for multiple hosts: Scan target unavailable (This doesn't get shown explicitly, I had to add some code to the gem to show the response.)
I'm testing CIFS authentication, but here is my code (I pulled all the data out of it for this post.):
I'm not seeing anything obviously wrong in your code. Do you get the same error if you try to test the same credential and engine from the UI in Administration > (Manage or Create) Shared Credentials?
Unfortunately the error message "Scan target unavailable" is not really correct (a known issue in Nexpose itself) so the true error could be invalid username/password, invalid domain, etc.
I've been playing around with everything, just reinstalled the gem and everything worked. Not sure what happened, but I can't complain. Thank you for your help!
Summary: I create a site_credential object, then run the "test" function on them and receive this response for multiple hosts: Scan target unavailable (This doesn't get shown explicitly, I had to add some code to the gem to show the response.)
I'm testing CIFS authentication, but here is my code (I pulled all the data out of it for this post.):
nsc = Nexpose::Connection.new(, , ) nsc.login
newCredential = Nexpose::SiteCredentials.for_service('admin2')
newCredential.service = 'cifs'
newCredential.user_name = ''
newCredential.password = ''
newCredential.scope = 'S'
newCredential.description = 'Bryan Gem Test'
newCredential.enabled = 'true'
output = newCredential.test(nsc, '', engine_id=17) ? "true": "false"
puts 'Testing Login: ' + output
Thanks in advance for your help, I'm hoping it's just an error with how I'm setting these up.
The text was updated successfully, but these errors were encountered: