[Alfresco] 利用 mod_proxy 為內部主機進行網址代理

No Comments

http://serverfault.com/questions/472491/how-to-set-up-alfresco-share-behind-apache-reverse-proxy

在 VirtualHost 的參考設定如下
——————-


ServerAdmin joechen@nic.twbbs.org
ServerName wkm.nic.twbbs.org
ErrorLog logs/wkm.nic.twbbs.org-error_log
CustomLog logs/wkm.nic.twbbs.org-access_log common

ProxyPass /alfresco ajp://km.nic.twbbs.org:8009/alfresco
ProxyPassReverse /alfresco ajp://km.nic.twbbs.org:8009/alfresco

ProxyPass /share ajp://km.nic.twbbs.org:8009/share
ProxyPassReverse /share ajp://km.nic.twbbs.org:8009/share



Order Deny,Allow
Allow from all
Satisfy Any

RedirectMatch ^/$ /share/#
#
# RewriteEngine on
# RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
# RewriteRule .* – [F]

[Alfresco] 外部存取 Postgraesql

No Comments

可編輯 /opt/alfresco-community/alf_data/postgresql/postgresql.conf
修改 listen_addresses

可用 navicat 存取, 但 alfresco 會出現 資源不存在的錯誤
所以還是關閉比較好

[Alfresco] Data list customization

No Comments

REF:
http://docs.alfresco.com/community/references/dev-extension-points-data-lists.html

[Alfresco] 呼叫 OpenOffice/LibreOffice 的方法

No Comments

1.由tomcat(內建方法)

tomcat/shared/classes/alfresco-global.properties:ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin

2.由 alfresco.sh 呼叫

libreoffice/scripts/libreoffice_ctl.sh:SOFFICEBIN=/opt/alfresco-community/libreoffice/program/.soffice.bin
libreoffice/scripts/libreoffice_ctl.sh:SOFFICEWRAPPER=/opt/alfresco-community/libreoffice/program/soffice.bin

看是由何者啟動, 預設的是 libreoffice_ctl.sh, 會叫不到 其實應改 為 ctl.sh
或是修改 alfresco-global.properties

[Alfresco] 使用固定的 Dashlets

No Comments

參考網址
https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/configure-fix-user-dashboard

要設定固定的 dashlet
presets.xml

[Alfresco] 整合 LDAP 及相關議題

No Comments

參考自
http://docs.alfresco.com/4.1/concepts/auth-ldap-openldaptips.html

1. 如果有500個使用者或群組, 可能會造成問題(OpenLDAP的議題)

2.Digest authentication , 如果有使用Digest, 在 slapd.conf 裡就要做好相關設定

# SASL mappings for md5 digest authentication
# Extract the user id and use as the search key

authz-regexp
uid=([^,]*),cn=digest-md5,cn=auth
ldap:///dc=company,dc=com??one?(uid=$1)

authz-regexp
uid=([^,]*),cn=company.com,cn=digest-md5,cn=auth
ldap:///dc=company,dc=com??one?(uid=$1)

# Tweaks to increase the result set size and max query time

sizelimit 50000
timelimit 3600

3.密碼採用純文字(讓各種驗證機制可被使用)

———–
OpenLDAP 服務安裝與設定
http://blog.xuite.net/tolarku/blog/161523701-LDAP+安裝介紹+-+CentOS+6.4+-+openldap

修改OpenLDAP預設服務port
編輯/etc/sysconfig/slapd 或/etc/sysconfig/ldap
http://stackoverflow.com/questions/31743764/changing-port-of-openldap-on-centos-installed-with-yum

Alfresco 整合 LDAP 參考資料
https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/authentication-ldap-sso/how-configure-ad

實際設定, alfresco-global.properties
# LDAP
authentication.chain=alfinst:alfrescoNtlm,ldap1:ldap
#authentication.chain=ldap1:ldap
ntlm.authentication.sso.enabled=false
ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=uid=%s,ou=Employee,dc=udngroup,dc=com
ldap.authentication.java.naming.provider.url=ldap://nic.twbbs.org:1352
ldap.authentication.defaultAdministratorUserNames=admin

ldap.synchronization.active=true
ldap.synchronization.java.naming.security.authentication=simple
ldap.synchronization.java.naming.security.principal=cn\=admin,dc\=udngroup,dc\=com
ldap.synchronization.java.naming.security.credentials=udng3609
ldap.synchronization.groupSearchBase=ou\=Employee,dc\=udngroup,dc\=com
ldap.synchronization.userSearchBase=cn\=joechen,ou\=Employee,dc\=udngroup,dc\=com

——————
其中 ldap.authentication.userNameFormat 的值, 如果留空
則表示只看 uid , 不限定 ou 為何, 均可通過
若有限定ou, 則會讓 Alfresco 無法存取其他 ou

———————
Alfresco 設定 LDAP , 可參考
https://geofoss.net/2015/07/10/alfresco-5-0-ldap-authentication/

Alfresco 批次新增使用者

No Comments

參考來源
http://docs.alfresco.com/4.1/tasks/at-adminconsole-upload-users.html

格式如下,
User Name,First Name,Last Name,E-mail Address,,Password,Company,Job Title,Location,Telephone,Mobile,
Skype,IM,Google User Name,Address,Address Line 2,Address Line 3,Post Code,Telephone,Fax,Email

以 CVS 格式存檔, 再以 UTF-8編碼, 上傳到 alfresco

Older Entries Newer Entries