toddlipcon / python-sasl

SASL wrappers for Python, borrowed from QPid
5 stars 10 forks source link

Prompting Password #2

Closed BradRuderman closed 11 years ago

BradRuderman commented 11 years ago

Hi Todd, I am having an issue where the sasl is prompting for a password in the console.

I am using this wrapper as a starter: https://github.com/BradRuderman/python-hiveserver2/blob/master/example/example.py

And am being prompted at this line 63: ret, chosen_mech, initial_response = self.sasl.start(self.mechanism) in: https://github.com/BradRuderman/python-hiveserver2/blob/master/src/cloudera/thrift_sasl.py

This password prompt has no effect on the connection provided I actually pass a string. If I don't pass a string it throws this error: Bad status: 3 (Error validating the login)

I am not sure where this validation is coming from, and why it is actually prompts when the password is not needed.

Thanks!

BradRuderman commented 11 years ago

Found issue, need to set password before initiating connection, even though password is not required. Am looking at implementing fix.