gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 08:43:26 25 4
gpt4 key购买 nike

我正在为 CMS 7.2-8.0 配置 Active Directory 模块 1.2,尽管一切运行良好,但我更喜欢使用集成安全性(遵循客户的策略)。但是,该手册没有提及有关为角色提供程序使用集成安全性的任何内容。 LightLDAP.SitecoreADRoleProvider 具有用户名和密码属性,并且不使用连接字符串:

<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>

在 Google 中查找这个问题非常困难,因为当然,集成安全性是 AD 模块提供的功能的一部分,因此每个命中也与集成安全性有关,但我正在寻找提供程序进行配置集成安全性(我的应用程序池用户是通过应用程序池登录的服务帐户,并且该用户对 AD 和数据库拥有正确的权限)。

最佳答案

刚刚完成 AD 集成设置,无需用户名和密码。根据我的经验,如果服务器加入域或与用户域信任的域,则不需要用户名和密码。我只是从配置中省略了connectionUsername 和connectionPassword 属性。

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

关于module - Sitecore:配置 LightLDAP.SitecoreADRoleProvider 时使用集成安全性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34221373/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com