認證

2011-09-27 75 views
0

後Sitecore的SIP活動目錄的問題我已經設置在Sitecore的內網門戶3.2的產品的活動目錄LDAP模塊,並取得了有限的成功。我收到錯誤「無法轉換類型‘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 

回答

0

我並沒有解決實際問題,但沒有拿出一個解決辦法。它出現在某種意義上AD Sitecore的模塊需要寫訪問,即使我已經禁用了模塊的幾乎所有地區AD。我不確定爲什麼沒有配置選項只讀模式。

無論如何,我創建一些代碼,找到用戶在AD;如果發現它會創建一個虛擬用戶,創建如果需要用戶配置文件,並且每個用戶與頁面驗證時更新配置文件與最新信息,從AD。