【问题标题】:Sitecore SIP active directory issues after authentication身份验证后的 Sitecore SIP 活动目录问题
【发布时间】:2015-12-22 20:12:18
【问题描述】:

我已经在 Sitecore 的 Intranet Portal 3.2 产品中设置了活动目录 LDAP 模块,但取得的成功有限。当我单击用户属性上的“确定”按钮并应用用户模板时,我收到错误“无法将“System.Configuration.SettingsPropertyValue”类型的对象转换为“LightLDAP.ADSettingsPropertyValue”。”使用自定义属性,当我尝试从前端编辑器查看工作箱时,以及当我尝试访问内容编辑器中的任何项目时。

我能够通过 LDAP 模块成功登录、管理 CMS 角色访问、安全等。我在前端自动登录,并且可以输入我的域\用户名\密码并成功验证广告。

任何帮助将不胜感激

堆栈跟踪

[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

【问题讨论】:

    标签: sitecore sitecore-intranet-portal


    【解决方案1】:

    我没有解决实际问题,但确实想出了一个解决方法。尽管我已经禁用了模块的几乎所有部分,但从某种意义上说,AD sitecore 模块似乎需要对 AD 的写访问权限。我不确定为什么只读模式没有配置选项。

    无论如何,我创建了一些在 AD 中查找用户的代码;如果找到它,它会创建一个虚拟用户,并在需要时创建一个用户配置文件,并在每次用户通过页面进行身份验证时使用来自 AD 的最新信息更新该配置文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-30
      • 2015-12-08
      相关资源
      最近更新 更多