0

Sitecore のイントラネット ポータル 3.2 製品で Active Directory LDAP モジュールをセットアップしましたが、うまくいきませんでした。ユーザー プロパティで [OK] ボタンをクリックし、カスタム プロパティを使用してユーザー テンプレートを適用しようとすると、「'System.Configuration.SettingsPropertyValue' 型のオブジェクトを型 'LightLDAP.ADSettingsPropertyValue' にキャストできません。」というエラーが表示されます。フロント エンド エディターからワークボックスを表示するとき、およびコンテンツ エディター内の任意のアイテムにアクセスしようとすると。

LDAP モジュールを介して正常にサインオンし、CMS ロール アクセス、セキュリティなどを管理できます。フロントエンドに自動的にログインし、ドメイン\ユーザー名\pwd を入力して、AD を介して正常に認証できます。

どんな助けでも大歓迎です

スタックトレース

[InvalidCastException: Unable to cast object of type 'System.Configuration.SettingsPropertyValue' to type 'LightLDAP.ADSettingsPropertyValue'.]
   LightLDAP.SitecoreADProfileProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection) +388
   Sitecore.Security.SwitchingProfileProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection) +294
   System.Configuration.SettingsBase.SaveCore() +484
   System.Configuration.SettingsBase.Save() +72
   System.Web.Profile.ProfileBase.SaveWithAssert() +43
   System.Web.Profile.ProfileBase.Save() +159
   Sitecore.Security.UserProfile.Save() +32
   Sitecore.Web.UI.HtmlControls.Registry.SetValue(String key, String value) +202
   Sitecore.Web.UI.HtmlControls.Listview.DoSetView(String name) +163
   Sitecore.Shell.Applications.ContentEditor.FileDropArea.OnLoad(EventArgs e) +693
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +350
   Sitecore.Web.UI.Sheer.ClientPage.AddControl(Control parent, Control control, String placeholder) +240
   Sitecore.Shell.Applications.ContentEditor.EditorFormatter.AddEditorControl(Control parent, Control editor, Field field, Boolean hasRibbon, Boolean readOnly, String value) +249
   Sitecore.Shell.Applications.ContentEditor.EditorFormatter.RenderField(Control parent, Field field, Item fieldType, Boolean readOnly, String value) +1097
   Sitecore.Shell.Applications.ContentEditor.EditorFormatter.RenderField(Control parent, Field field, Item fieldType, Boolean readOnly) +204
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderInput(Field field) +131
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode element) +603
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderChildElements(XmlNode element) +141
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderMarker(XmlNode element) +175
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode element) +674
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderChildElements(XmlNode element) +141
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderSectionPanel(XmlNode element) +270
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode element) +635
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.AddText(XmlNode element) +494
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode element) +717
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.AddText(XmlNode element) +494
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.RenderElement(XmlNode element) +717
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.Render(XmlDocument skin) +125
   Sitecore.Shell.Applications.ContentEditor.Pipelines.RenderContentEditor.RenderSkinedContentEditor.Process(RenderContentEditorArgs args) +353
   (Object , Object[] ) +79
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +240
   Sitecore.Shell.Applications.ContentManager.Editor.Render(RenderContentEditorArgs args, Control parent) +538
   Sitecore.Shell.Applications.ContentManager.ContentEditorForm.RenderEditor(Item item, Item root, Control parent, Boolean showEditor) +232
   Sitecore.Shell.Applications.ContentManager.ContentEditorForm.UpdateEditor(Item folder, Item root, Boolean showEditor) +345
   Sitecore.Shell.Applications.ContentManager.ContentEditorForm.Update() +344

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +1255
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
   Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) +91
   Sitecore.Reflection.ReflectionUtil.CallMethod(Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters) +75
   Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +120
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3410
4

1 に答える 1

0

私は実際の問題を解決しませんでしたが、回避策を考え出しました。モジュールのほぼすべての部分を無効にしていても、AD サイトコア モジュールには、ある意味で AD への書き込みアクセスが必要なようです。読み取り専用モードの構成オプションがない理由がわかりません。

とにかく、AD でユーザーを見つけるコードをいくつか作成しました。見つかった場合は、仮想ユーザーを作成し、必要に応じてユーザー プロファイルを作成し、ユーザーがページで認証されるたびに AD からの最新情報でそのプロファイルを更新します。

于 2011-10-04T15:20:52.820 に答える