As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
This is the demo script Martin used for Episode #57 of Tech Talk Live. It still needs to be cleaned up a bit...
### Solr indexing ### #index.subsystem.name=solr #dir.keystore=${dir.root}/keystore #solr.port.ssl=8443 ### Lucene indexing ### index.subsystem.name=lucene
index.recovery.mode=FULL
<Connector port='9443' protocol='org.apache.coyote.http11.Http11Protocol' SSLEnabled='true' maxThreads='150' scheme='https' keystoreFile='C:\AlfrescoSolrTTL/data/keystore/ssl.keystore' keystorePass='kT9X6oe68t' keystoreType='JCEKS' secure='true' connectionTimeout='240000' truststoreFile='C:\AlfrescoSolrTTL/data/keystore/ssl.truststore' truststorePass='kT9X6oe68t' truststoreType='JCEKS' clientAuth='false' sslProtocol='TLS' allowUnsafeLegacyRenegotiation='true' />
<tomcat-users> <user username='CN=Alfresco Repository, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB' roles='repository' password='null'/> </tomcat-users>
### Solr indexing ### index.subsystem.name=solr dir.keystore=${dir.root}/keystore solr.port.ssl=9443 solr.host=localhost ### Lucene indexing ### #index.subsystem.name=lucene
<Connector port='8443' protocol='org.apache.coyote.http11.Http11Protocol' SSLEnabled='true' maxThreads='150' scheme='https' keystoreFile='C:\Alfresco4.0.2TTL/alf_data/keystore/ssl.keystore' keystorePass='kT9X6oe68t' keystoreType='JCEKS' secure='true' connectionTimeout='240000' truststoreFile='C:\Alfresco4.0.2TTL/alf_data/keystore/ssl.truststore' truststorePass='kT9X6oe68t' truststoreType='JCEKS' clientAuth='false' sslProtocol='TLS' allowUnsafeLegacyRenegotiation='true' maxSavePostSize='-1' /> and in tomcat-users.xml <tomcat-users> <user username='CN=Alfresco Repository Client, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB' roles='repoclient' password='null'/> <user username='CN=Alfresco Repository, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB' roles='repository' password='null'/> </tomcat-users>
and in web.xml
<security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/service/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/s/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/wcservice/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <security-constraint> <web-resource-collection> <web-resource-name>SOLR</web-resource-name> <url-pattern>/wcs/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>CLIENT-CERT</auth-method> <realm-name>Repository</realm-name> </login-config> <security-role> <role-name>repoclient</role-name> </security-role>
127.0.0.1 - CN=Alfresco Repository, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB [01/Aug/2012:15:00:08 +0200] 'POST /solr/alfresco/afts?q=%28%28alfresco++AND +%28%2BTYPE%3A%22cm%3Acontent%22 +%2BTYPE%3A%22cm%3Afolder%22%29%29+AND+ -TYPE%3A%22cm%3Athumbnail%22+AND+ -TYPE%3A%22cm%3AfailedThumbnail%22+AND+ -TYPE%3A%22cm%3Arating%22%29+AND+ NOT+ASPECT%3A%22sys%3Ahidden%22& wt=json& fl=DBID%2Cscore& rows=502& df=keywords& start=0& locale=en_GB& fq=%7B%21afts%7D AUTHORITY_FILTER_FROM_JSON&fq=%7B%21afts%7D TENANT_FILTER_FROM_JSON HTTP/1.1' 200 2983
solr.port=9090 solr.secureComms=none
<security-constraint> <web-resource-collection> <url-pattern>/service/api/solr/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repoclient</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>CLIENT-CERT</auth-method> <realm-name>Repository</realm-name> </login-config> <security-role> <role-name>repoclient</role-name> </security-role>
alfresco.secureComms=none
<security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>repository</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>CLIENT-CERT</auth-method> <realm-name>Solr</realm-name> </login-config> <security-role> <role-name>repository</role-name> </security-role>
Solr