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

Already on GitHub? Sign in to your account

CRITICAL: CassandraSession.Login() does not work! #119

ssteo opened this Issue Mar 13, 2013 · 2 comments


None yet
2 participants

ssteo commented Mar 13, 2013

The following code always throw exception during Connection.SetKeyspace() within GetClient() because it tries to select a keyspace before calling login to authenticate.

    this.GetClient (true, null, false).login (auth_request);
    this.IsAuthenticated = true;
catch (Exception innerException)
    this.IsAuthenticated = false;
    throw new CassandraException ("Login failed.", innerException);

ssteo commented Mar 13, 2013

Update that line to the following to allow authentication to pass:

this.GetClient(setKeyspace: false, setLogin: false).login(auth);


nberardi commented Mar 20, 2013

Thank you for the pull request.

@nberardi nberardi closed this Mar 20, 2013

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