Use the create-auth-realm subcommand in remote mode to create an authentication realm.
Ensure that the server is running.
Remote subcommands require a running server.
Create a realm by using the create-auth-realm(1) subcommand.
Information about properties for this subcommand is included in this help page.
This example creates a realm named db.
asadmin> create-auth-realm --classname com.iplanet.ias.security. auth.realm.DB.Database --property defaultuser=admin:Password=admin db Command create-auth-realm executed successfully.
You can also view the full syntax and options of the subcommand by typing asadmin help create-auth-realm at the command line.
For information on creating a custom realm, see Creating a Custom Realm in Sun GlassFish Enterprise Server v3 Application Development Guide.