TOTD #159: How to add login/password to Admin Console in GlassFish 3.x ?

The default behavior of Admin Console in GlassFish 3.1 is to not ask for a login/password. This was done as a convenience to developers with the expectation that production installs will secure the admin user. You can secure it again by going to (in the admin console):

Configurations -> server-config -> Security -> Realms -> admin-realm -> Manage Users

You can either give 'admin' a password, or add another user. Read more on users@glassfish.

Technorati: totd adminconsole security glassfish

Comments:

I need to give users access for deploying their projects on the server but not to stop it or other admin privileges.

Posted by Oscar on April 08, 2011 at 08:00 AM PDT #

Oscar,

GlassFish currently does not support specific roles on admin console - its "all" or "nothing". Please file an RFE for this in JIRA:

http://java.net/jira/browse/GLASSFISH

Posted by Arun Gupta on April 08, 2011 at 09:08 AM PDT #

Configurations -> server-config -> Security -> Realms -> admin-realm -> Manage Users

Where is this place ?

Posted by ilaclama on April 09, 2011 at 04:56 AM PDT #

ilaclama,

In the web-based admin console available at http://localhost:4848.

Posted by Arun Gupta on April 09, 2011 at 12:26 PM PDT #

i just installed glassfish 3.1 on a server here in my lab. I have 30 students and each one of them must deploy a hello world kind of application on it. As i read above, GlassFish currently does not support specific roles on admin console.

Posted by ilaclama on March 08, 2012 at 06:13 AM PST #

GlassFish does not have role-based access control for now.

Posted by Arun Gupta on March 14, 2012 at 10:36 AM PDT #

It works (version 0.3.1) :) I'm able to connect to my local glassfish server with no problems whatsoever. I was also able to install some bundles using osgish. No perl-related or other warnings appear. I'll now star using it instead of telnet for administrative OSGi tasks. I'll report back any caveats or bugs (hopefully none) I find. Thanks one more time for your effort and this great piece of software. Best regards, SEOMUS

Posted by seo on April 12, 2012 at 08:07 AM PDT #

thanks for post. it's usefull.

Posted by ilaçlama on April 17, 2012 at 03:43 AM PDT #

very great post, thanks for you

Posted by böcek ilaçlama on August 22, 2012 at 07:05 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today