You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Sabbiolina <sa...@gmail.com> on 2012/03/14 01:53:01 UTC

[Windows] How to configure simple authentication and authorization ?

HI. I followed this:



To set up simple authentication and authorization
1. Edit cassandra.yaml, setting
org.apache.cassandra.auth.SimpleAuthenticator as the
authenticator value. The default value of AllowAllAuthenticator is
equivalent to no authentication.
2. Edit access.properties, adding entries for users and their permissions
to read and write to specified
keyspaces and column families. See access.properties below for details on
the correct format.
3. Make sure that users specified in access.properties have corresponding
entries in passwd.properties.
See passwd.properties below for details and examples.
4. After making the required configuration changes, you must specify the
properties files when starting Cassandra
with the flags -Dpasswd.properties and -Daccess.properties. For example:
cd $CASSANDRA_HOME
sh bin/cassandra -f -Dpasswd.properties=conf/passwd.properties
-Daccess.properties=conf/access.properties


I started services with additional parameters, but no result, no Log,
nothing....

I use datastax 1.0.8 communiti edition on win 7 64 bit


Tnxs

Re: [Windows] How to configure simple authentication and authorization ?

Posted by Sabbiolina <sa...@gmail.com>.
I want passwords.



On Wed, Mar 14, 2012 at 8:58 PM, Tyler Hobbs <ty...@datastax.com> wrote:

> If you haven't enabled encryption, it shouldn't be trying to open that
> file in the first place.  Did you set the location of passwd.properties or
> access.properties to be that file?
>
> If not, there might be a bug here.
>
>
> On Wed, Mar 14, 2012 at 10:49 AM, Sabbiolina <sa...@gmail.com> wrote:
>
>>
>>
>> encryption_options:
>>     internode_encryption: none
>>     keystore: conf/.keystore
>>     keystore_password: cassandra
>>     truststore: conf/.truststore
>>     truststore_password: cassandra
>>
>> from log:
>>
>> INFO [FlushWriter:1] 2012-03-14 14:32:58,948 Memtable.java (line 283)
>> Completed flushing C:\DataStax\data\data\system\
>> LocationInfo-hc-12-Data.db (80 bytes)
>>  ERROR [main] 2012-03-14 14:32:58,952 AbstractCassandraDaemon.java (line
>> 373) Exception encountered during startup
>>  java.io.FileNotFoundException: conf\.truststore
>>
>>
>> Where do I put the files?
>>
>>
>>
>>
>> On Wed, Mar 14, 2012 at 8:43 AM, Maki Watanabe <wa...@gmail.com>wrote:
>>
>>> Have you build and installed SimpleAuthenticator from the source
>>> repository?
>>> It is not included in the binary kit.
>>>
>>> maki
>>>
>>> 2012/3/14 Sabbiolina <sa...@gmail.com>:
>>> > HI. I followed this:
>>> >
>>> >
>>> >
>>> > To set up simple authentication and authorization
>>> > 1. Edit cassandra.yaml, setting
>>> > org.apache.cassandra.auth.SimpleAuthenticator as the
>>> > authenticator value. The default value of AllowAllAuthenticator is
>>> > equivalent to no authentication.
>>> > 2. Edit access.properties, adding entries for users and their
>>> permissions to
>>> > read and write to specified
>>> > keyspaces and column families. See access.properties below for details
>>> on
>>> > the correct format.
>>> > 3. Make sure that users specified in access.properties have
>>> corresponding
>>> > entries in passwd.properties.
>>> > See passwd.properties below for details and examples.
>>> > 4. After making the required configuration changes, you must specify
>>> the
>>> > properties files when starting Cassandra
>>> > with the flags -Dpasswd.properties and -Daccess.properties. For
>>> example:
>>> > cd $CASSANDRA_HOME
>>> > sh bin/cassandra -f -Dpasswd.properties=conf/passwd.properties
>>> > -Daccess.properties=conf/access.properties
>>> >
>>> >
>>> > I started services with additional parameters, but no result, no Log,
>>> > nothing....
>>> >
>>> > I use datastax 1.0.8 communiti edition on win 7 64 bit
>>> >
>>> >
>>> > Tnxs
>>> >
>>>
>>
>>
>
>
> --
> Tyler Hobbs
> DataStax <http://datastax.com/>
>
>

Re: [Windows] How to configure simple authentication and authorization ?

Posted by Tyler Hobbs <ty...@datastax.com>.
If you haven't enabled encryption, it shouldn't be trying to open that file
in the first place.  Did you set the location of passwd.properties or
access.properties to be that file?

If not, there might be a bug here.

On Wed, Mar 14, 2012 at 10:49 AM, Sabbiolina <sa...@gmail.com> wrote:

>
>
> encryption_options:
>     internode_encryption: none
>     keystore: conf/.keystore
>     keystore_password: cassandra
>     truststore: conf/.truststore
>     truststore_password: cassandra
>
> from log:
>
> INFO [FlushWriter:1] 2012-03-14 14:32:58,948 Memtable.java (line 283)
> Completed flushing C:\DataStax\data\data\system\
> LocationInfo-hc-12-Data.db (80 bytes)
>  ERROR [main] 2012-03-14 14:32:58,952 AbstractCassandraDaemon.java (line
> 373) Exception encountered during startup
>  java.io.FileNotFoundException: conf\.truststore
>
>
> Where do I put the files?
>
>
>
>
> On Wed, Mar 14, 2012 at 8:43 AM, Maki Watanabe <wa...@gmail.com>wrote:
>
>> Have you build and installed SimpleAuthenticator from the source
>> repository?
>> It is not included in the binary kit.
>>
>> maki
>>
>> 2012/3/14 Sabbiolina <sa...@gmail.com>:
>> > HI. I followed this:
>> >
>> >
>> >
>> > To set up simple authentication and authorization
>> > 1. Edit cassandra.yaml, setting
>> > org.apache.cassandra.auth.SimpleAuthenticator as the
>> > authenticator value. The default value of AllowAllAuthenticator is
>> > equivalent to no authentication.
>> > 2. Edit access.properties, adding entries for users and their
>> permissions to
>> > read and write to specified
>> > keyspaces and column families. See access.properties below for details
>> on
>> > the correct format.
>> > 3. Make sure that users specified in access.properties have
>> corresponding
>> > entries in passwd.properties.
>> > See passwd.properties below for details and examples.
>> > 4. After making the required configuration changes, you must specify the
>> > properties files when starting Cassandra
>> > with the flags -Dpasswd.properties and -Daccess.properties. For example:
>> > cd $CASSANDRA_HOME
>> > sh bin/cassandra -f -Dpasswd.properties=conf/passwd.properties
>> > -Daccess.properties=conf/access.properties
>> >
>> >
>> > I started services with additional parameters, but no result, no Log,
>> > nothing....
>> >
>> > I use datastax 1.0.8 communiti edition on win 7 64 bit
>> >
>> >
>> > Tnxs
>> >
>>
>
>


-- 
Tyler Hobbs
DataStax <http://datastax.com/>

Re: [Windows] How to configure simple authentication and authorization ?

Posted by Sabbiolina <sa...@gmail.com>.
encryption_options:
    internode_encryption: none
    keystore: conf/.keystore
    keystore_password: cassandra
    truststore: conf/.truststore
    truststore_password: cassandra

from log:

INFO [FlushWriter:1] 2012-03-14 14:32:58,948 Memtable.java (line 283)
Completed flushing C:\DataStax\data\data\system\
LocationInfo-hc-12-Data.db (80 bytes)
 ERROR [main] 2012-03-14 14:32:58,952 AbstractCassandraDaemon.java (line
373) Exception encountered during startup
 java.io.FileNotFoundException: conf\.truststore


Where do I put the files?




On Wed, Mar 14, 2012 at 8:43 AM, Maki Watanabe <wa...@gmail.com>wrote:

> Have you build and installed SimpleAuthenticator from the source
> repository?
> It is not included in the binary kit.
>
> maki
>
> 2012/3/14 Sabbiolina <sa...@gmail.com>:
> > HI. I followed this:
> >
> >
> >
> > To set up simple authentication and authorization
> > 1. Edit cassandra.yaml, setting
> > org.apache.cassandra.auth.SimpleAuthenticator as the
> > authenticator value. The default value of AllowAllAuthenticator is
> > equivalent to no authentication.
> > 2. Edit access.properties, adding entries for users and their
> permissions to
> > read and write to specified
> > keyspaces and column families. See access.properties below for details on
> > the correct format.
> > 3. Make sure that users specified in access.properties have corresponding
> > entries in passwd.properties.
> > See passwd.properties below for details and examples.
> > 4. After making the required configuration changes, you must specify the
> > properties files when starting Cassandra
> > with the flags -Dpasswd.properties and -Daccess.properties. For example:
> > cd $CASSANDRA_HOME
> > sh bin/cassandra -f -Dpasswd.properties=conf/passwd.properties
> > -Daccess.properties=conf/access.properties
> >
> >
> > I started services with additional parameters, but no result, no Log,
> > nothing....
> >
> > I use datastax 1.0.8 communiti edition on win 7 64 bit
> >
> >
> > Tnxs
> >
>

Re: [Windows] How to configure simple authentication and authorization ?

Posted by Maki Watanabe <wa...@gmail.com>.
Have you build and installed SimpleAuthenticator from the source repository?
It is not included in the binary kit.

maki

2012/3/14 Sabbiolina <sa...@gmail.com>:
> HI. I followed this:
>
>
>
> To set up simple authentication and authorization
> 1. Edit cassandra.yaml, setting
> org.apache.cassandra.auth.SimpleAuthenticator as the
> authenticator value. The default value of AllowAllAuthenticator is
> equivalent to no authentication.
> 2. Edit access.properties, adding entries for users and their permissions to
> read and write to specified
> keyspaces and column families. See access.properties below for details on
> the correct format.
> 3. Make sure that users specified in access.properties have corresponding
> entries in passwd.properties.
> See passwd.properties below for details and examples.
> 4. After making the required configuration changes, you must specify the
> properties files when starting Cassandra
> with the flags -Dpasswd.properties and -Daccess.properties. For example:
> cd $CASSANDRA_HOME
> sh bin/cassandra -f -Dpasswd.properties=conf/passwd.properties
> -Daccess.properties=conf/access.properties
>
>
> I started services with additional parameters, but no result, no Log,
> nothing....
>
> I use datastax 1.0.8 communiti edition on win 7 64 bit
>
>
> Tnxs
>