Module Sitecore:配置LightLDAP.SitecoreADRoleProvider时使用集成安全性

Module Sitecore:配置LightLDAP.SitecoreADRoleProvider时使用集成安全性,module,active-directory,ldap,sitecore,integrated-security,Module,Active Directory,Ldap,Sitecore,Integrated Security,我正在为CMS 7.2-8.0配置Active Directory模块1.2,尽管一切都很好,但我更喜欢使用集成安全性(遵循客户的策略)。但是,该手册没有说明如何为角色提供程序使用集成安全性。LightLDAP.SitecoreADRoleProvider具有用户名和密码属性,并且没有为此使用connectionstring: <roleManager defaultProvider="switcher" enabled="true" xdt:Transform="SetAttribute

我正在为CMS 7.2-8.0配置Active Directory模块1.2,尽管一切都很好,但我更喜欢使用集成安全性(遵循客户的策略)。但是,该手册没有说明如何为角色提供程序使用集成安全性。LightLDAP.SitecoreADRoleProvider具有用户名和密码属性,并且没有为此使用connectionstring:

<roleManager defaultProvider="switcher" enabled="true" xdt:Transform="SetAttributes" xdt:Locator="Match(enabled)">
  <providers>
    <add name="ad" xdt:Transform="Insert" xdt:Locator="Match(name)"
      type="LightLDAP.SitecoreADRoleProvider"
      connectionStringName="ADSitecoreUsers"
      applicationName="sitecore"
      username="usr"
      password="pass"
      attributeMapUsername="sAMAccountName" cacheSize="2MB" />
  </providers>
</roleManager>
<profile defaultProvider="switcher" enabled="true" inherits="Sitecore.Security.UserProfile, Sitecore.Kernel" xdt:Transform="SetAttributes" xdt:Locator="Match(enabled)">
  <providers>
    <add xdt:Transform="Insert" xdt:Locator="Match(name)" name="ad" type="LightLDAP.SitecoreADProfileProvider"
      connectionStringName="ADSitecoreUsers"
      applicationName="sitecore"
      username="usr"
      password="pass"
      sitecoreMapDomainName="ad" />
  </providers>
</profile>


在谷歌上查找这个问题相当困难,因为集成安全性当然是广告模块提供的功能的一部分,所以每次点击都是关于集成安全性的,但我正在寻找使用集成安全性配置的提供商(我的应用程序池用户是通过应用程序池登录的服务帐户,该用户拥有正确的广告和数据库权限)。

刚刚完成设置广告集成,没有用户名和密码。 根据我的经验,如果服务器加入到域或与用户域具有信任关系的域,则不需要用户名和密码。我只是在配置中省略了connectionUsername和connectionPassword属性

但是,我们不允许更改用户名和密码(写回AD)在我们的设置中,您的里程数可能会根据您的设置而有所不同。

提供商确实使用了connectionstring-
connectionstring名称
,但我认为无法像SQL那样在connString中指定用户名/密码。您是否尝试过省略用户名/密码属性?我可以在Sitecore中这样做6.4安装,但服务器都是内部托管的。是的,确实如此。By“具有用户名和密码属性,不为此使用connectionstring”我的意思是它不使用连接字符串作为凭据。但是你的建议很好,没想到会起作用,但是根据你6.4的经验,我将尝试忽略这些值,并在引用的连接字符串中使用集成安全性。