[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

利用gmail代Alfresco發信的準備工作

No Comments

編輯 alfresco-global.properties
# Gmail notification
mail.host=smtp.gmail.com
mail.port=465
mail.username=username@gmail.com
mail.password=xxxxx
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true

2016-01-25 16:35:51,540 ERROR [action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to [70847] : org.springframework.mail.MailAuthent
icationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 ty5sm26526272pac.48 – gsmtp

https://accounts.google.com/DisplayUnlockCaptcha(這個設定沒用)

要設定, 安全性較低的應用程式存取權限

[Alfresco][Install][CIFS][FTP] Alfresco community edition

No Comments

Install Guide
http://docs.alfresco.com/community/concepts/download-community.html

Download file (about 750MB)
http://dl.alfresco.com/release/community/5.0.d-build-00002/alfresco-community-5.0.d-installer-linux-x64.bin

Step 1: install with root permission in text mode
$ sudo /bin/bash ./alfresco-community-5.0.d-installer-linux-x64.bin –mode text

Step 2: setting by defaults

Step 3: login the system with web browser
http://your-ip:8080/share
or
https://your-ip:8443/share

#CIFS setting, 編輯 alfresco-global.properties
cifs.enabled=true
cifs.serverName=km.twnet.ga
cifs.tcpipSMB.port=445
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138
cifs.netBIOSSMB.sessionPort=139

 

# FTP service
ftp.enabled=true
ftp.port=21

企業 知識管理

No Comments

[定義]
我們認為「知識管理應該是一種具有完整規劃的系統,能夠持續地、普遍地收集人類的智慧;同時,知識管理也是一種互動的過程」
出處來源: http://www.eland.com.tw/support/kmarticle/business_01

[優點]
1.整合分散的文件
2.

[困難]
1.知識不易被分享
2.知識存錄分散
3.與現有知識管理系統/環境無法良好整合

[應具備特質/條件]
1.文件存錄(Documents)
a.審核機制(簽核流程)
b.安全機制
c.帳號機制(整合組織架構)
d.文件版本管控
e.檢索機制
整合異質環境
支援文件多種格式(線上閱讀/下載)
f.外部文件(citation/upload/referance)
2.反映現況(Live Status)
3.發現異常(Discovery)
4.專家系統(Solutions)

[其他建議功能]
1.行動化介面/行動載具
2.文件共筆
3.文件評分(價值呈現)
4.

[現有工具]
1.sharepoint
2.eKM(意藍科技)
3.OpenKM 6.3.0 (open source)(有中文介面)
4.Alfresco Community Edition

其他參考
台肥: http://www.taifer.com.tw/taifer/tf/055002/18.html

Newer Entries