最近在研究pentaho bi系統,已經把原始碼編譯成功,發現很多同行都在詢問如何設定才能實現免登入展示cde(wcdf檔案)和report(prpt檔案),所以寫下這篇文章,希望能幫助大家能配置成功。
以下內容應用的版本是:biserver-ce-6.1.0.1-196
主要原理就是通過向匿名使用者提供所有許可權,繞過ba伺服器上的內建安全性。
1. 設定「anonymoususer」並指定相應許可權。
class="org.springframework.security.providers.anonymous.anonymousprocessingfilter">
name="userattribute" value="anonymoususer,anonymous" />
id="filterchainproxy"
class="org.springframework.security.util.filterchainproxy">
name="filterinvocationdefinitionsource">
value>
property>
bean>
\a/i18n.*\z=anonymous,authenticated
\a/js/utils.js\z=anonymous,authenticated
\a/api/.*require-js-cfg.js\z=anonymous,authenticated
\a/api/.*\z=anonymous,authenticated
\a/api/repos.*\z=anonymous,authenticated
\a/api/common-ui/resources/.*\z=anonymous,authenticated
\a/api/common-ui/util/.*\z=anonymous,authenticated
\a/plugin/saiku/.*\z=anonymous,authenticated
\a/saiku/rest/saiku/.*\z=anonymous,authenticated
\a/api/repos.*public.*test.*\z=anonymous,authenticated
\a/api/repos.*public.*test.*/viewer/.*\z=anonymous,authenticated
\a/api/repos.*public.*test.*/common-ui/.*\z=anonymous,authenticated
\a/api/repos.*public.*test.*/common-ui/util/.*\z=anonymous,authenticated
\a/api/repos.*public.*plugin-samples.*\z=anonymous,authenticated
\a/api/repos.*public.*plugin-samples.*/viewer/.*\z=anonymous,authenticated
\a/api/repos.*public.*plugin-samples.*/common-ui/.*\z=anonymous,authenticated
\a/api/repos.*public.*plugin-samples.*/common-ui/util/.*\z=anonymous,authenticated
\a/content/pentaho-cdf/.*\z=anonymous,authenticated
\a/content/common-ui/.*\z=anonymous,authenticated
\a/content/analyzer/.*\z=anonymous,authenticated
\a/content/saiku-ui/.*public.*test.*/.*\z=anonymous,authenticated
\a/content/saiku-ui/.*\z=anonymous,authenticated
\a/content/analyzer/scripts/.*\z=anonymous,authenticated注意一點:上述內容中\a/api/repos.public.*test.\z的相關行,public.*test是我放置cde檔案的目錄,需要進行定義後才能正常訪問。
找到bean id=」filterinvocationinterceptorforws」的objectdefinitionsource配置處,新增如下內容:
\a/api/repos/.*\z=anonymous,authenticated
\a/api/.*require-cfg.js.*\z=anonymous,authenticated
\a/api/.*require-js-cfg.js.*\z=anonymous,authenticated
\a/api/.*\z=anonymous,authenticated
\a/plugin/.*\z=anonymous,authenticated
\a/plugin/saiku/.*\z=anonymous,authenticated
\a/saiku/rest/saiku/.*\z=anonymous,authenticated
\a/content/saiku-ui/.*\z=anonymous,authenticated
6.最後一步,設定資料夾或檔案的共享屬性啟動ba伺服器,開啟如下畫面進行設定。
然後請開啟瀏覽器訪問一下cde檔案,試試看還有沒有彈出登入框了。
Linux CentOS6 免密登入
安裝ssh客戶端 發檔案和收檔案的機器都得安裝 yum install y openssh clients 生成公鑰和私鑰 ssh keygen t rsa 一路回車 為需要進行免密的機器傳送公鑰 不要忘了給自己發,因為自己登入自己也需要密碼 ssh copy id i root ssh id rs...
ssl免密登入(centos6)
1.首先執行ll a檢視是否有隱藏檔案.ssh,如果沒有,需要執行ssh localhost登入以下即可 cd ssh 2.生成秘鑰 可檢視 ssh keygen t dsa p f ssh id dsa 生成id dsa.pub公鑰 3.把公鑰檔案追加到乙個驗證檔案authorized keys中...
ssh免登入 設定集群環境ssh免登入步驟
1.每台機器都需要執行,生成自己的金鑰 ssh keygen t rsa過程中遇到選項,全部enter cd ssh cat id rsa.pub authorized keys chmod 600 authorized keys 分別在node2,node3 上的 目錄下建立 ssh 目錄,建好後...