You're going down the right path using Windows Authentication - that should handle authenticating users to your AD. As far as the database is concerned, I would recommend writing a little piece of code within your application that auto generates the user record on the back end when a user logs into the system for the first time. I'm guessing any user that authenticates against your AD is allowed in the application, which is the only way this method would work.
There are many examples of interacting with AD via csharp, but here's a start:
发布评论
评论(1)
您正在使用 Windows 身份验证走正确的道路 - 它应该处理 AD 的用户身份验证。就数据库而言,我建议在应用程序中编写一小段代码,当用户第一次登录系统时,自动在后端生成用户记录。我猜测应用程序中允许任何针对您的 AD 进行身份验证的用户,这是此方法有效的唯一方法。
通过 csharp 与 AD 交互的示例有很多,但这里是一个开始:
http://www.ianatkinson .net/computing/adcsharp.htm
如果您需要更多帮助,请告诉我,祝您好运!
You're going down the right path using Windows Authentication - that should handle authenticating users to your AD. As far as the database is concerned, I would recommend writing a little piece of code within your application that auto generates the user record on the back end when a user logs into the system for the first time. I'm guessing any user that authenticates against your AD is allowed in the application, which is the only way this method would work.
There are many examples of interacting with AD via csharp, but here's a start:
http://www.ianatkinson.net/computing/adcsharp.htm
Let me know if you need more help, good luck!