cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sabbiolina <sabbiol...@gmail.com>
Subject Re: [Windows] How to configure simple authentication and authorization ?
Date Wed, 14 Mar 2012 21:13:18 GMT
I want passwords.



On Wed, Mar 14, 2012 at 8:58 PM, Tyler Hobbs <tyler@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 <sabbiolina@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 <watanabe.maki@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 <sabbiolina@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/>
>
>

Mime
View raw message