Well, more than a question this is an answer, I was trying to see for Glassfish 4.0 default admin password to access its console but I didn't find any satisfactory answer, some suggested to change admin-keyfile on glasssfish folder which can also work... anyhow... here it is how I did it...
well, it turns out that it HAS a default password in the most recent version of netbeans, I discover that it is self-generated and it's not generic, to see your password go to services tab and then right click on your glassfish 4.0 server, then choose properties and then you'll see your password stored there on the common tab, click on show and you'll have your password...
hope to help you guys!
[root#ip-172-31-20-218 bin]# ./asadmin change-admin-password
Enter admin user name [default: admin]>admin
Enter the admin password>**[Note: as default password for admin in Glassfish 4.0 is blank, you need to press enter key only. Do not type any thing.]**
Enter the new admin password>
Enter the new admin password again>
Command change-admin-password executed successfully.
I have used eclipse. I got the same issue I resolved it by doing the following.
For a fresh download of glassfish4.zip
Go to Glassfish_home/bin
Run asadmin start-domain
Open up http://localhost:4848
Click on Domain
Click on Administration Password
Give the new password and confirm
In the command prompt Run asaadmin stop-domain
Open the server in eclipse and give the username and password and start the server.
I faced the same problem. And I solved it using a small trick. I removed the server installed with NetBeans from the interface and the added another. When you do this you may create a personal domain. And in this personal domain the anonymouns login is already enabled, with no password at all.
I know this is not a good solution, but it is a solution nonetheless.
Hope it helps!
PS: At least in my NetBeans 7.4 for Linux, sometimes when I leave NetBeans the servers won't go down. Then you have to kill their processes, or else you won't manage to install another due to port conflicts. It's a tricky thing to find the process of the server. When you use "ps -A" the name of the process is only "java", with no clue it is the server.
As I know default glassfish password is 'changeit' for master admin and is empty for domain admin (with login admin by default). If you mean this password try this.
Related
I had JBoss installed a while ago so I eventually forgot the password and username used for managing it (I mean the management console on port 9990).
I tried to reset the password by running the add-user.sh script but messed it up and now every user I add is created in the admin realm:
Enter the details of the new user to add.
Using realm 'admin' as discovered from the existing property files.
I do not need this realm, I just need the admin user to manage JBoss (presumably, this is the Management realm).
I tried to do the following:
Removed the admin line from mgmt-users.properties and mgmt-groups.properties in the standalone/configuration and domain/configuration
Tried to find the 'admin' realm in standalone.xml and standalone-full.xml but to no avail.
My question is how to create/reset the password of admin in the Management at last?
Also, where can I find the existing property files that JBoss mentions and override it to make it use the Management realm instead?
Had to reinstall JBoss and the problem gone.
I have been asked to implement seamless SSO authentication against active directory for a weblogic web based application.
After loads of testing and experimentation I have managed to get all the chain working as required.
Users logging in from a windows managed PC and using IE can seamlessly login to the web application.
After that, an apache was configured and installed between the web browser and weblogic in order to perform HTTPS-->HTTP termination. Once this was done the browser stopped performing seamless login - though basic authentication did work;
Investigating further, I noticed that the Authorization header was not forwarded across to weblogic which justifies why the authentication does not take place.
Note that the apache server I am using is 2.2.
Does anybody know if apache explicitly removes the Authorization header? I have also tried increasing the request maximum size to 30KB in case that was the problem
Thank you
We need to install the following package.
apt-get install libapache-mod-auth-kerb
First we have copy the HTTP.keytab (which is generated at "Active Directory") to etc/krb5.keytab like as below.
cp /root/HTTP.keytab /etc/krb5.keytab
Next we will have to give proper permissions.
chown www-data:www-data /etc/krb5.keytab
chmod 400 /etc/krb5.keytab
Next we go to Apache virtual hosts path
vi /etc/apache2/sites-available/default
Add one directory as like below
`<Directory />
AuthName "Kerberos Login"
AuthType Kerberos
Krb5Keytab /etc/krb5.keytab
KrbServiceName HTTP
KrbAuthRealm YOURDOMAIN.LOCAL //It is Domain name of your server
KrbMethodNegotiate on
KrbSaveCredentials on
KrbVerifyKDC on
Require valid-user
</Directory>`
Restart Apache web server
/etc/init.d/apache2 restart
Next go to browser of Active Directory client machine and hit the web server with FQDN of apache server. It will not ask you the password to open that website.
NOTE:
For explorer browser we need set automatic logon with user name and password at security tab
user authentication -> logon -> automatic logon with user name and password
If you found any difficulties please update me.
Pretty much says it all, but when I try to log in to the Glassfish console I am get a "Error Authentication Failed Re-enter your username and password"
However when i use asadmin I am able to login, deploy, etc. it all works.
If there is a particular place I can alter the log level or a place I can look.
FYI part of the reason I think this happened is that I have changed the master password.
Any tips?
Not Exactly sure why it works, but I think it may be due to some cached values. I already had secure admin enabled when I stared the process of adding SSL certificates, and based on information in this post:
Right way to configure Glassfish SSL certificate nickname? I was able to find a solution.
With the server running Disable Secure Admin.
Restart Server
Enable Secure Admin
Restart Server.
I am having a hard time with the OpenShift client tools on Ubuntu. It keeps asking for a password which I am now confused about. Issuing rhc apps command displays the following message : Please sign in to start a new session to openshift.redhat.com.
I entered my openshift account password but got a message that it was invalid. What password is required here ??
Use the -l param to be sure you are using your account:
rhc domain show -l yourmail#mail.my
Use the same credentials that used in the web site.
BTW, If you use only an OpenShift account, the setup will configure the access with certificate and you won't need use password from command line.
rhc setup
It should use the same username/password that you log into the web console with.
Every time I start netbeans, the first time I launch a web application which is deployed on a Glassfish 3 or Glassfish 3.1 server where I set a password, netbeans asks for my credentials.
This is (and needs to be) a custom glassfish installation.
I know it is possible to tell netbeans not to ask, because it is like it when installing the glassfish that is bundled with netbeans.
What do I need to do?
NetBeans does not do anything to remember the password for GlassFish Server 3.0 and 3.1. It doesn't send a password when commands are sent to the running server via HTTP and so, the server returns a 401. The IDE presents the authorization dialog and retries the HTPP admin command.
There is an open enhancement request for this feature. http://netbeans.org/bugzilla/show_bug.cgi?id=166648
I haven't tested it, but it might be a bug (in which case it would be great if would file an issue).
The default installation of GlassFish has no password set for the admin user (so no password is required).
I recommend:
use a local GlassFish installation with no password for development (deploy with NetBeans)
use a password on your productive GlassFish installation, deploy from your continuous integration server (such as Hudson)