ASP.NET Active Directory 成员资格提供商 - 在 AD 中存储额外的配置文件字段
我已经设置了 Active Directory 成员资格提供程序,并且可以使用 ASP.NET 应用程序成功创建用户并将其登录到 Active Directory。
但是,除了用户名/密码之外,Active Directory 还有其他字段,例如名字、姓氏、电话号码等。有什么方法可以让我使用我的 ASP.NET 网站收集这些信息并将其存储在 Active Directory 中?
我知道我需要使用配置文件提供程序,并且从技术上讲我可以将其设置为使用 SQL DB 来存储额外的配置文件信息,但是有什么方法可以将信息直接存储在 Active Directory 中的可用字段中吗?据我所知,没有 ActiveDirectoryProfileProvider。
谢谢你,
I have set up an Active Directory Membership provider and can successfully create and log in users into the active directory with an ASP.NET application.
However, the active directory has other fields besides Username/Password such as First Name, Last Name , Telephone Number etc. Is there any way for me to be able to gather this information using my ASP.NET website and store it in the Active Directory?
I understand that I need to use a Profile Provider and I can technically set it up to use an SQL DB to store the extra profile information, but is there any way I can store the information directly in the fields available in the Active Directory? As far as I know there is no ActiveDirectoryProfileProvider.
Thank you,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以到达那里 - 可能需要走出会员系统并使用 System.DirectoryServices 写入 AD。现在,写入 SQL 将变得更加容易,尤其是在开发时。而且您不必与不希望您的网络应用程序具有提升的 AD 权限的系统管理员进行斗争。
You could get there -- probably would need to step outside the membership system and use the System.DirectoryServices to write to AD. Now, writing to SQL will be a lot easier, especially at development time. And you won't have to fight a sysadmin who doesn't want your web app having elevated AD privileges.