Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIFS Test Authentication Can't Find the Server #219

Closed
TheCaucasianAsian opened this issue Apr 25, 2016 · 2 comments
Closed

CIFS Test Authentication Can't Find the Server #219

TheCaucasianAsian opened this issue Apr 25, 2016 · 2 comments

Comments

@TheCaucasianAsian
Copy link

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.

@gschneider-r7
Copy link
Contributor

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.

@TheCaucasianAsian
Copy link
Author

Hi! Thank you for the quick response.

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants