4.2 自動判定要使用的認證者

因為大多數 Notes 環境使用多個認證者,所以可以將 NotesDriverShim 設定為在規則中使用不同的認證者。 位於 Identity_Manager_3_Linux_NW_Win.iso CD 上 dirxml\drivers\lotusNotes\rules 目錄中的範例 Cert.xsl 樣式表是一個「輸出轉換」樣式表,它包含根據 <add> 標籤上的 src‑dn 屬性判定要使用之「Notes 認證者」的邏輯。 所提供的另一個範例是 NotesCertifierSelectionSampleSS.xsl 範例樣式表 (如果您從 Identity_Manager_3_Unix.iso CD 安裝,則會安裝這些項目)。

您可以編輯 choose/when 陳述式,以模型化 Notes 系統認證者結構。 因為驅動程式參數畫面可以包含根部認證者的資訊,所以如果可以接受僅使用根部認證者,則不必使用 Cert.xsl

若要在您的環境中使用 Cert.xsl,請首先變更現有的 xsl:when 陳述式,以符合您的組態。

<xsl:when test="string($dn) = ’\dirxml-ds\provo\notes\eng’"> <xsl:attribute name="cert-id">c:\lotus\domino\data\eng.id</xsl:attribute> <xsl:attribute name="cert-pwd">certify2eng</xsl:attribute> <xsl:attribute name="user-pwd">new2notes</xsl:attribute </xsl:when>

新增模型化組織之認證結構所需的多個 xsl:when 陳述式。

然後,變更 xsl:otherwise 中的 cert‑id 和 cert‑pwd,以符合您的根部認證者資訊。

<xsl:otherwise> <xsl:attribute name="cert-id">d:\lotus\domino\data\cert.id</xsl:attribute> <xsl:attribute name="cert-pwd">certify2notes</xsl:attribute> </xsl:otherwise>

Cert.xsl 藉由新增屬性至 XML 文件中的 add 標籤,以傳達認證者資訊。 如果 NotesDriverShim 找不到這些屬性,則其會使用啟始化期間傳遞之驅動程式「參數」的根部認證者資訊。

NOTE:Cert.xsl 還會顯示如何置換驅動程式的數個其他參數。 如需這些參數的相關資訊,請參閱Section 4.5, 自定驅動程式參數