Configuring hawtio with JNDIRealm on tomcat? - hawtio

I'm trying to use active directory authentication on hawtio login.
I've defined the JNDIRealm on my server.xml and enabled authentication on tomcat catalina options - but couldn't get the hawt to use this realm.
I saw that hawt website presents that the default behavior on tomcat is using users data file (tomcat-users.xml) - and I succeed using it as described in website.
But is there any way to work with JNDIRealm instead this default UserDatabaseRealm behavior?
Any help appreciated.
Thx.

Related

B2B Recipe install issue in SAP Hybris 6.2

I just installed b2c_acc_plus recipe and after it i also installed powertools B2B add on. When i am trying to access the accelerator website, i am getting a message on browser "Server Error". However strangely the Platform site is working. The server logs are also not showing any error.
I changed the host file. In HAC/Extentions all the B2C and B2B extention are showing installed.
Before installing the B2B addons the B2C sites were working, server logs are showing cronjobs for B2C & B2B. Any idea what could be problem?
In case an error is thrown, the tomcat server logs are very helpful.
Not sure how you started the application with a recipe or by executing hybrisserver.sh (on linux) in the .../hybris/bin/platform folder. You can take a look in the tomcat logfile directly in .../hybris/log/tomcat/console<date>.log file.
Without this, it's very hard to providing help.
Try to set logging level to debug and make sure you're passing site name in the URL. E.g. .../yacceleratorstorefront?site=electronics
Where did you get trainingstorefront? If you are using OOTB accelerator, it would be yacceleratorstorefront.
Please try to hit below URL and it should work.
http://localhost:9001/yacceleratorstorefront/?site=electronics&clear=true
http://localhost:9001/yacceleratorstorefront/?site=apparel-uk&clear=true
for https please change the port to 9002.

unable to validate weblogic domain

I am new to JSF, was setting up my first workspace in Eclipse Helios and Weblogic 10.0 server, I am getting 'Stopped, Unable to validate weblogic domain' while trying to start the server. Same problem persists while trying to add a new domain.
Please help.
I am using WebLogic server 12c and the steps to resolve this issue is:
Start Weblogic server(I started through command prompt)
Go to Weblogic console page (login with admin credentials)
Domain Structure >> Select your domain (i was having base_domain)
Click on the Security tab
Check Anonymous Admin Lookup enabled. (by default its unchecked)
Save (save the changes)
** Restart the server (preferably through admin console)
Now, Start the server through eclipse. It should work.!!
Regards,
Maris
And here is the resolution :
Go to Window Tab -> Preferences -> General -> Network Connections
Change the Active provider to "Direct". The default is usually Native. and that's it. Close and restart eclipse.
It happened to me as well, I even reinstalled weblogic again, after a bit of research I decided to kill all of the Java(TM) Platform SE Binary process via Task Manager and restarted the Server.
That's all It took to resolve the issue.
I tested this on Weblogic 10.3.6. Luck!!

Liferay Webservices not starting

I'm trying to use Liferays webservices (viewable at /api/jsonws), but my Liferay installation is not starting any of this services. I'm running Liferay 6.1.3 on JBoss 7.2. This problem occures on three different servers. Same Liferay & JBoss setup on all 3. Only difference is that one of those servers had Liferay 6.2 running briefly. 6.2 allowed access to all webservices from /api/jsonws. Sadly I cannot switch back to 6.2 for several reasons.
Got a log entry stating that no service is configured.
16:36:03,291 DEBUG [ServerService Thread Pool -- 268][JSONWebServiceConfigurator:221] Configure JSON web service actions
16:36:03,299 DEBUG [ServerService Thread Pool -- 268][JSONWebServiceConfigurator:236] Configured 0 actions in 7 ms
Same liferay on a local tomcat works pretty fine and starts all webservices. So my question is if there is any kind of global on/off switch or if I have to set any special settings? I'm running out of ideas right now ...
Thanks in advance and regards, Sebastian
It may be worth checking portal-ext.properties file in your server.
There is a setting to turn JSON web services on/off. I guess it may be set as "false" in your case.
#
# Set this property to true to enable JSON web services. Note that setting
# this to false will cause portlets that make JSON web service calls from
# working.
#
json.web.service.enabled=true

jenkins Access Denied- asdf#gmail.com is missing the Read permission

i am using Jenkins war 1.520 in Ubuntu 12.04 i had configured jenkins with openid plugin and authenticated with Google apps. I made some changes in role based security and matrix based security why prompts me
Access Denied- asdf#gmail.com is missing the Read permission
please let me know, what needs to be done in order to get the access to jenkins
You will have to reconfigure your permissions. Do you still have a user with login access or not ? If not you might have to reset it by temporarily disabling the security. This can be achieved by modifying the $JENKINS_HOME/config.xml ($HOME/.jenkins/config.xml by default when running the jenkins.war on your system) and setting <useSecurity> from true to false. Be sure to backup your config!
Once you are there reenable the security, and show us what you have in matrix and role based security.
Had the same issue with Jenkins, turns out my user name was Gideon but error I was getting was 'gideon is missing the overall administer/register permission'. Edited config.xml by changing Gideon to gideon in the /hudson/authorizationStrategy/permission tags and everything is working fine now.
My permissions file was here:
/var/lib/jenkins/config.xml
As suggested in Disable security page, you need to edit config.xml in your $JENKINS_HOME (e.g. /var/lib/jenkins) and remove lines with useSecurity, authorizationStrategy and securityRealm, then restart Jenkins.
See: Jenkins Github Authentication error: user is missing the Overall/Read permission

need to retrieve windows logged in user in Jboss

My application was running Jboss 4.2.3 GA and i enabled the tomcatauthentication in server.xml. I also enabled integrated windows authentication on IIS. By doing these steps, i was able to retrieve the logged in user by request.getRemoteUser().
Now application is upgraded to Jboss 7 and there is no tomcatauthentication flag available. Is there any way to extract the username in the application?
I suppose you connect IIS and JBoss using AJP Connector.
Ensure you set the tomcatAuthentication="false" attribute on the AJP element, otherwise you will not get REMOTE_USER. See Tomcat's AJP Connector documentation for more details: http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html

Resources