We can host apps in the url
http://jelastic.com/
Thursday, November 17, 2011
Wednesday, November 9, 2011
JMX Dump
We can get jmx dump using below url
http://localhost:8080/alfresco/faces/jsp/admin/jmx-dumper.jsp
http://localhost:8080/alfresco/faces/jsp/admin/jmx-dumper.jsp
Tuesday, November 8, 2011
Conditionally hiding header in Alfresco share
We can conditionally show or hide the headers in Share.
Share accepts the ftl expression and based on that it decides whether to show or hide the link.
- {userdashboardpage}
- {myhomeHersheys}
- Alfresco.module.Sites
- /people-finder
- condition="user.properties['email']?ends_with('@patil.com')" >/repository
Share accepts the ftl expression and based on that it decides whether to show or hide the link.
SSO to share
All the people feel that alfresco share is not easy.
Follow the below steps
1. From your web server set the REMOTE_USER
Make sure you are getting remoteuser by getting that value in the jsp
2, In the tomcat disable the tomcat authentication so that you will get
req.getRemoteUser()
tomcatauthentication="false">
3. No need to change the X-Alfresco-RemoteUSer
as it will check for remoteuser i it does not exist then only it will check for the X-Alfresco-Remote User
Follow the below steps
1. From your web server set the REMOTE_USER
Make sure you are getting remoteuser by getting that value in the jsp
2, In the tomcat disable the tomcat authentication so that you will get
req.getRemoteUser()
3. No need to change the X-Alfresco-RemoteUSer
as it will check for remoteuser i it does not exist then only it will check for the X-Alfresco-Remote User
Monday, November 7, 2011
Setting REMOTE_USER
One way to do this is to put an apache front-end with a ajp1.3 connector with basic auth, i.e.:
a) create a /usr/local/apache2/conf/workers.properties file with:
-------------------------
worker.list=alexwk,jkstatus
worker.alexwk.host=127.0.0.1
worker.alexwk.port=8009
worker.alexwk.type=ajp13
worker.alexwk.lbfactor=100
-------------------------
b) in apache httpd.conf:
-------------------------
JkworkersFile "/usr/local/apache2/conf/workers.properties"
ServerName alfjk2.foo
JkLogFile "/usr/local/apache2/logs/mod_jk_2.log"
JkMount /alfresco alexwk
JkMount /alfresco/* alexwk
JkMount /share alexwk
JkMount /share/* alexwk
JkLogLevel info
AuthType Basic
AuthName "Test Basic Auth"
AuthUserFile /usr/local/apache2/passtest.txt
Require valid-user
-------------------------
4) In tomcat server.xml, define an ajp13 connector turning off tomcat authentication:
5) generate a password file with admin/admin:
/usr/local/apache2/bin/htpasswd -c /usr/local/apache2/passtest.txt admin
6) check the cgi variable setup putting in a new file
'tomcat/webapps/alfresco/test.jsp':
-------------------------
getRemoteUser() is set to:
<% out.print (request.getRemoteUser()); %>
-------------------------
and go to:
http://alfjk2.foo/alfresco/test.jsp
You should see the name of the HTTP user.
This is been taken from
https://issues.alfresco.com/jira/browse/ALF-4230
a) create a /usr/local/apache2/conf/workers.properties file with:
-------------------------
worker.list=alexwk,jkstatus
worker.alexwk.host=127.0.0.1
worker.alexwk.port=8009
worker.alexwk.type=ajp13
worker.alexwk.lbfactor=100
-------------------------
b) in apache httpd.conf:
-------------------------
JkworkersFile "/usr/local/apache2/conf/workers.properties"
ServerName alfjk2.foo
JkLogFile "/usr/local/apache2/logs/mod_jk_2.log"
JkMount /alfresco alexwk
JkMount /alfresco/* alexwk
JkMount /share alexwk
JkMount /share/* alexwk
JkLogLevel info
AuthType Basic
AuthName "Test Basic Auth"
AuthUserFile /usr/local/apache2/passtest.txt
Require valid-user
-------------------------
4) In tomcat server.xml, define an ajp13 connector turning off tomcat authentication:
5) generate a password file with admin/admin:
/usr/local/apache2/bin/htpasswd -c /usr/local/apache2/passtest.txt admin
6) check the cgi variable setup putting in a new file
'tomcat/webapps/alfresco/test.jsp':
-------------------------
getRemoteUser() is set to:
<% out.print (request.getRemoteUser()); %>
-------------------------
and go to:
http://alfjk2.foo/alfresco/test.jsp
You should see the name of the HTTP user.
This is been taken from
https://issues.alfresco.com/jira/browse/ALF-4230
Thursday, November 3, 2011
Updataing the jar file with the existing class
Here we need to put duplicate="preserve" so that only one file will be considered.
Subscribe to:
Posts (Atom)