顯示具有 Sharepoint 標籤的文章。 顯示所有文章
顯示具有 Sharepoint 標籤的文章。 顯示所有文章

2017年1月27日 星期五

[Sharepoint] People picker cannot recoginize domain user

 Sharepoint    AD   People picker


▌Issue


Issue: The people picker in Sharepoint could not recognize the some domain users.


How to solve it


Find the administration cmd tool of SharePoint Server

First, we have to find the stsadm.exe tool, it’s located in

C:\Program Files\Common Files\Microsoft Shared\web server extensions\{version#}\bin


Search the available domain users

Use the following command to analyze the AD users in certain domain.

$> stsadm -o setproperty -pn peoplepicker-searchadforests -pv "{domain name}" -url http://sharepoint-portal/


Done :)


Reference




2017年1月24日 星期二

[Sharepoint] Webpart embeds SAP Netweaver problem

 Sharepoint   Webpart   Embedded webpage   iframe

Trouble


由於SAP Netweaver Portaljavascript預設是以目前頁面為TOP frame的情況去撰寫,所以在使用Sharepoint Webpartiframe再做一次內嵌時,就會引發一些語法的錯誤判斷

例如我這一次碰到, Webpart會一直卡在NetweaverLoading畫面



Fiddler看一下封包, 發現Webpart iframe 從顯示LoadingGIF動畫轉址到SAP Portal頁面顯示LoadingGIF動畫轉址無窮迴圈!!






How to solve it


SAP Netweaver 7.3之前的版本

SAP Netweaver AP Server以下路徑
\usr\sap\<SID>\<NO>\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\

開啟 web.xml,加入一個新的alias設定

<init-param>
     <param-name>
          portal/interop
     </param-name>
     <param-value>
          anonymous=0,proxy=0,low_bandwidth=0,include_in_url=1, include_application_name_in_url=1,nested_window=1
     </param-value>
</init-param>

B06然後調整要內嵌的URL,例如 :

http://XXX/irj/servlet/prt/portal/prtroot/...  改為

http://XXX/irj/portal/interop/prtroot/...


SAP Netweaver 7.3()後的版本

預設已經加入interopalias,所以只要確定有加上 nested_window=1 的參數值即可。
內嵌的Netweaver URL仍是比照上面做調整


如此就可以正確在Sharepoint Webpart內嵌SAP Netweaver的網站內容。


Reference


[Sharepoint] Use webpart to embed other website pages

 Sharepoint   Webpart   Embedded webpage   iframe

Introduction


簡單介紹如何使用Sharepoint來內嵌其他網站的內容~


Environment

Sharepoint 2013



Implement


新增應用程式




選擇應用程式類型

您可以選擇如下圖預設的應用程式類型(只截圖部分),因我們目標在於內嵌其他網站內容,這邊我選擇「文件庫」作為示範。






▋輸入名稱




Results

選擇右上角工具icon→【編輯頁面





移除預設網頁組件

選擇預設Webpart右上方的下箭頭→【刪除




移除預設網頁組件

再次選擇工具icon→【編輯頁面





新增Webpart





加入媒體及內容→【網頁檢視器







加入其他網站(網頁)URL




完成之後,可直接點選左上角的【停止編輯】關閉設計頁面。


外部網站無法被iframe內嵌

如果內嵌的網站有設定Http response header : X-Frame-Options
Sharepoing Webpart則不會顯示外部網站內容,並會出現如下錯誤訊息

Refused to display 'http://xxxxxxxx' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

解決方式:
移除此Http response header
設定可允許內嵌之URL
同源(Same origin)




SSO (Single Sign On)

如果內嵌的網站也是Windows帳號認證,這時候請開啟內嵌網站的Windows驗證,即可達到SSO的目的。