atom feed4 messages in net.java.dev.glassfish.usersRe: Bulk creation of user accounts
FromSent OnAttachments
for...@java.netMar 9, 2011 9:35 am 
for...@java.netMar 9, 2011 1:44 pm 
Jason LeeMar 9, 2011 2:26 pm 
Laird NelsonMar 9, 2011 2:31 pm 
Subject:Re: Bulk creation of user accounts
From:Laird Nelson (ljne@gmail.com)
Date:Mar 9, 2011 2:31:11 pm
List:net.java.dev.glassfish.users

On Wed, Mar 9, 2011 at 4:45 PM, <for@java.net> wrote:

I need to create over 500 accounts, and frequently delete and recreate the accounts. Is there a way to create these users via a script? I don't see how to pipe in the password as it always seems to prompt for one. Either the file realm or via a jdbc table.

For the file realm: create them once. Then back up the keyfile found in (e.g.) domains/domain1/config. When you need to reconstitute the list (say, you install a new Glassfish instance), just copy the backed-up keyfile on top of the default one.

I'm making all sorts of assumptions here about what "frequently delete and recreate the accounts" means, since it sounds like they'll always have the same contents.

Best, Laird