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

Password is echoed #12

Closed
russellpierce opened this issue Oct 4, 2015 · 6 comments
Closed

Password is echoed #12

russellpierce opened this issue Oct 4, 2015 · 6 comments

Comments

@russellpierce
Copy link
Sponsor Contributor

One problem I rediscovered with #11 is that when an auth provided password is provided, then is echoed to the console. In redisConnect I handled that by wrapping the constructor in base::capture.output(), but that isn't applicable now. Any ideas on how to suppress it?

@eddelbuettel
Copy link
Owner

Eeek. That sounds bad. In the 'redis is echoing back what we gave it' sense?

@eddelbuettel
Copy link
Owner

Wait a second. Is this a simple oversight from this line?

@russellpierce
Copy link
Sponsor Contributor Author

Just tested it. Problem is resolved. You're right - that was the source of the unexpected echo - a very unfortunate appendix left over from debugging on my end. Sorry about that.

@eddelbuettel
Copy link
Owner

I believe this took care of it:

  • I set up requirepassword in the config (with the default)
  • It now works as expected, see below.
R> library(RcppRedis)
R> redis <- new(Redis, "localhost", 6379, "foobared")
R> redis
C++ object <0x1e80a10> of class 'Redis' <0x2648170>
R> redis2 <- new(Redis)
R> redis$exec("ping")
[1] "PONG"
R> redis2$exec("ping")
[1] "NOAUTH Authentication required."
R> 

@eddelbuettel
Copy link
Owner

No worries. Been there, done that :)

Is the ChangeLog entry ok? I am not inadvertently disclosing IDs or email -- that was all already in the git commit log ...

@russellpierce
Copy link
Sponsor Contributor Author

The ChangeLog entry looks great. No changes needed.

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

No branches or pull requests

2 participants