You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Joey Daughtery <jd...@t-sciences.com> on 2012/01/09 15:24:30 UTC
Creating user and authorizations
All
Is there a way to create a user and authorizations via code instead of cmd
line?
Thanks
Joe
Re: Creating user and authorizations
Posted by Adam Fuchs <ad...@ugov.gov>.
Joey,
You'll want to use the
org.apache.accumulo.core.client.admin.SecurityOperations object obtained
from Connector.securityOperations().
Cheers,
Adam
On Mon, Jan 9, 2012 at 9:24 AM, Joey Daughtery <jd...@t-sciences.com>wrote:
> All
> Is there a way to create a user and authorizations via code instead of cmd
> line?
>
> Thanks
>
> Joe
>
Re: Creating user and authorizations
Posted by Billie J Rinaldi <bi...@ugov.gov>.
On Monday, January 9, 2012 9:24:30 AM, "Joey Daughtery" <jd...@t-sciences.com> wrote:
> Is there a way to create a user and authorizations via code instead of
> cmd line?
Use connector.securityOperations().createUser(String user, byte[] password, Authorizations authorizations).
Billie
Re: Creating user and authorizations
Posted by John W Vines <jo...@ugov.gov>.
----- Original Message -----
| From: "Joey Daughtery" <jd...@t-sciences.com>
| To: accumulo-user@incubator.apache.org
| Sent: Monday, January 9, 2012 9:24:30 AM
| Subject: Creating user and authorizations
| All
| Is there a way to create a user and authorizations via code instead of
| cmd line?
|
| Thanks
|
| Joe
Certainly! You can grab SecurityOptions from your Connector via securityOperations(). SecurityOptions will let you create a user, set their authorizations, etc.
John