jboss username and password for login - jboss

How can, we know the jboss username and password for login

Under your JBoss application server directory, look for a file named:
conf/login-config.xml
There will be a block called:
<application-policy name="jmx-console">
... which will tell where your file-based username=password combinations are stored. I believe the default path is:
conf/props/jmx-console-users.properties

By default credential in Jboss is Given below
login: admin
password: admin
But if you use EAP these credential are turn off by default and there is no active user (security reasons :)). If you want to turn on these user you have to edit file in your current profile: ./deploy/management/console-mgr.sar/web-console.war/WEB-INF/classes/web-console-users.properties. It should be enough to remove # sign form the line with the user.
If you want to create new user don't forget to set up correct groups in
web-console-roles.properties file.
You can easly find information where these information are store. Just open the ./conf/login-config.xml file and find the proper security domain definition. In case of Web Console application it will be web-console policy.
or
in JBoss application server directory you have to look for a file named which is given below:
conf/login-config.xml
Inside this file search for application and go to below tags
<application-policy name="jmx-console">
which will tell where your file-based username=password combinations are stored. I think that default path is:
conf/props/jmx-console-users.properties

User: jboss
Password: passw0rd
If you are referring to JBoss' console user/password.

Related

How to start Weblogic admin server

when I am starting WebLogic admin server with local host:port no/console I am getting the following error:
Console/Management requests or requests with <require-admin-traffic> specified to 'true' can only be made through an administration channel.
How to overcome this error?
You can manualy change your config.xml, find the <require-admin-traffic> element and change it's value to false.
This is because the option administration-port-enabled is set to true in config.xml
(available under ../MW_HOME/user_projects/domains/config)
<administration-port-enabled>false</administration-port-enabled>
Perfect. Or you can use the administration port you entered when configuring the server to use the admin server, which will be different from the default one. The default one 7001, the default for the admin server is 9002 and you can only access it via https.
Not downvoting the answer as it is accepted and maybe useful for users which can't recover their admin port, but this is obviously not best practise.
Once you open config.xml under the folder ../config,
change this row from 'true' to 'false':
true
It should then be ok.
Skender Kollcaku
You are most probably trying to use the administration console on the application port. You need the administration port.
Go to your domain directories (ex. /opt/weblogic/domains/mydomain)
Go into sub-directory config
Run grep "administration-port" config.xml
This will give you a port number, like: <administration-port>12345</administration-port>
Use that port to connect to /console/.
ex: https://YOUR-SERVER:12345/console/
This is much preferable to using the application port for the console, like #Peter pointed out.

How can I change wluser's password after installed IBM worklight?

How can I change wluser's password?
I changed it's password, and "wl.db.password" of worklight.properties.
But both worklight console and application center didn't work.
After that ,I took back the password, then both of them work correctly.
Has anyone tried that?
※「wluser」 is db2user for worklight.
http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m5/topic/com.ibm.worklight.help.doc/admin/t_creating_the_db2_databases.html?resultof=%22%64%62%32%22%20%22%77%6c%75%73%65%72%22%20
My Environment is below.
Windows 7
Worklight V5.0.5.1
WAS V8.5
DB2 V9.7
When I changed wluser's password, I got following errors.
Worklight console
Error 500: javax.servlet.ServletException: Worklight Project not initialized
applicationcenter,
An unexpected error occurred (HTTP Status 500)
When you create a worklight.properties, you have the option to specify the database connection parameters through two means, described in http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m6/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fadmin%2Fr_ibm_worklight_database_setup.html. In order to be able to modify the password from the application server console, rather than in the worklight.properties file, you need to use the "JNDI way" of setting the database connection properties, as documented in http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m6/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fdevref%2Ft_transporting_the_app.html.
In WebSphere Application Server, you find the location to edit the DB2 password by opening the WAS administration console, then opening the "Security > Global security" page, then clicking on the "Java Authentication and Authorization Service > J2C authentication data", in the resulting list pick the "WorklightDb2DatabaseCredentials" credentials and edit them. Note that for other types of databases than DB2, the password is stored as a custom property of the datasource, rather than as JAAS authentication data.
In WebSphere Application Server Liberty profile, the password is in the server.xml file of the server, in the <dataSource jndiName="jdbc/WorklightDS"> and <dataSource jndiName="jdbc/WorklightReportsDS"> elements. Simply edit this file; Liberty will notice that it's been edited and reload it.
In Tomcat, the password is in the conf/server.xml file. Here, the password is in the <Resource name="jdbc/WorklightDS"> and <Resource name="jdbc/WorklightReportsDS"> elements. Simply edit this file, then restart the Tomcat server.

Enterprise Library for Logging to Flat File Trace Listener

What kind of permission needs to be given to the Error.log file in the server (running IIS 7.5) so that errors are written to the Error.log file?
I have created a directory named ErrorLog and set up the listener in web.config like below.
The windows identity in play (depends on how you authenticate)
var principal = ClaimsPrincipal.Current; //normally this reverts to Thread.CurrentPrincipal, but can be changed
return principal.Identity.Name;
or
var windowsIdentity = WindowsIdentity.GetCurrent();
if (windowsIdentity != null)
{
return windowsIdentity.Name;
}
The Executing windows identity Will need create permission in directory and write permission to the file specified in your EL config.
You can place file anywhere you like using config. Default for file without path is Start project directory containing assembly dll.
See In IIS the Application Pool used by the website. The pool determines the windows Identity. See the advanced settings tab for the Pool. The identity approach to be used is defined here.
I don't see your configuration example, but..
I find that it is best not to use Flat File outside of development. The Event Log or Database listeners are more suitable for a web application in production.
If you must use Flat File, you will need to give the account (for the application pool that is assigned to the web application) write access to the directory that the file should be created in. By default I think that is the web application's bin directory, unless you include a path in the file name in your configuration.
It probably depends on what context your app in operating in. The app pool thread is responsible for writing the log so give the read/write folder permissions for the same identity as your app pool. I think this is NETWORKSERVICE by default.

jboss jmx console login

I am using JBoss 4.x application server. I am trying to login to the JMX console which requires authentication.
I am providing username and password as "admin" but still it gives as HTTP 401.
Following entry is present in my jmx-console-users.properties file
# A sample users.properties file for use with the UsersRolesLoginModule admin=JBossAdmin.
I assume that the last part of this line is actually a line by itself:
# A sample users.properties file for use with the UsersRolesLoginModule
admin=JBossAdmin
If that's the case, then the username is admin and the password is JBossAdmin . If not, it means the file doesn't contains any username/password. Just create a line similar to the one I mentioned above. Also, please promise me that you'll not leave admin as password.

BizTalk MSMQ userid and password in a bindings file

I'm setting up a solution to deploy, driven by a batch file so it's reproducible
- I've got a binding file that works but I've now added on my MSMQ adapters
- works on my local machine, but I've found I have to add a userid and password to get it to work on the actual server
- it's in the domain, my virtual dev machine is just workgroup
Is there someway to add the userid and password to the file ?
- seems unlikely as that'd have the password in clear text, but what's the solution
- I sort of think something w.r.t. SSO, but that is an area I've not been near
You can put the userid and password into any BizTalk binding that supports authentication, including MSMQ. For security, the password is not exported, you just get a mask.
The userName and password sections of the binding file are not exported unless they have been configured, so the simplest thing to do is configure a MSMQ send port with userName and password manually and export the bindings - this forces the elements containing userName and the masked password to be generated into the binding file.
What you are looking for in your binding file is the <TransportTypeData> element of your MSMQ send port. This contains all of your adapter config information as encoded data.
Within that element there is a userName and password section. The password will be masked out with asterisks. Put the password for the environment there and import the binding.
The part of the encoded data with username and password will look something like below:
&lt;userName&gt;YourUserName&lt;/userName&
amp;gt;&lt;password&gt;******&lt;/password&gt;
For security reasons, when you export
bindings, BizTalk Server removes the
passwords for the bindings from the
file. After importing the bindings,
you must reconfigure passwords for
send ports and receive locations
before they will function. You
configure passwords in the Transport
Properties dialog box of the BizTalk
Server Administration console for the
send port or receive location. For
instructions, see How to Create a Send
Port. See also How to Create a Receive
Location.
From http://msdn.microsoft.com/en-us/library/aa558708.aspx
If you however open the biding file and scroll down to the line with the properties for the MSMQ Adapter you'll find the empty nodes. All you then have to do is to fill these out and the right values and they will be used the next time you import the binding file.
Of course you'll have to remember to redo this every time you export a new binding ...