Connecting To Shell With Incorrect Password

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Connecting To Shell With Incorrect Password

David Medinets
I ran this command:

  accumulo shell -u root -p bad_password

And was connected to the shell. I did not expect this to work. I could
run the "tables" command. I could even choose a table to work with.
However the scan and insert failed as shown below.

root@development> table david
root@development david> scan
14 00:18:11,063 [shell.Shell] ERROR:
org.apache.accumulo.core.client.AccumuloSecurityException: Error
BAD_CREDENTIALS - Username or Password is Invalid
root@development david> insert row1 cf1 cq1 value
14 00:18:25,952 [impl.ThriftScanner] WARN : Security Violation in scan
request to 66.175.213.65:9997: ThriftSecurityException(user:root,
code:BAD_CREDENTIALS)
14 00:18:26,046 [shell.Shell] ERROR:
org.apache.accumulo.core.client.MutationsRejectedException: #
constraint violations : 0  # authorization failures : 1  # server
errors 0 # exceptions 0

The config -T command did work which is probably not good.

Am I correct that my initial connection to the shell with an incorrect
password should fail? If so, it's JIRA time!
Reply | Threaded
Open this post in threaded view
|

Re: Connecting To Shell With Incorrect Password

William Slacum-2
That seems dumb-- make the ticket!

On Fri, Jul 13, 2012 at 8:20 PM, David Medinets <[hidden email]>wrote:

> I ran this command:
>
>   accumulo shell -u root -p bad_password
>
> And was connected to the shell. I did not expect this to work. I could
> run the "tables" command. I could even choose a table to work with.
> However the scan and insert failed as shown below.
>
> root@development> table david
> root@development david> scan
> 14 00:18:11,063 [shell.Shell] ERROR:
> org.apache.accumulo.core.client.AccumuloSecurityException: Error
> BAD_CREDENTIALS - Username or Password is Invalid
> root@development david> insert row1 cf1 cq1 value
> 14 00:18:25,952 [impl.ThriftScanner] WARN : Security Violation in scan
> request to 66.175.213.65:9997: ThriftSecurityException(user:root,
> code:BAD_CREDENTIALS)
> 14 00:18:26,046 [shell.Shell] ERROR:
> org.apache.accumulo.core.client.MutationsRejectedException: #
> constraint violations : 0  # authorization failures : 1  # server
> errors 0 # exceptions 0
>
> The config -T command did work which is probably not good.
>
> Am I correct that my initial connection to the shell with an incorrect
> password should fail? If so, it's JIRA time!
>
Reply | Threaded
Open this post in threaded view
|

Re: Connecting To Shell With Incorrect Password

David Medinets
I post here first to see if someone confirms the problem. My first
assumption is that I'm doing something wrong.
Reply | Threaded
Open this post in threaded view
|

Re: Connecting To Shell With Incorrect Password

Jim Klucar
I know that some of the thrift calls (get master stats comes to mind)
have the password in the thrift call, but don't do anything with it.

Sent from my iPhone

On Jul 13, 2012, at 9:22 PM, David Medinets <[hidden email]> wrote:

> I post here first to see if someone confirms the problem. My first
> assumption is that I'm doing something wrong.