如何与Active Directory集成德尔福? [英] How do integrate Delphi with Active Directory?

查看:175
本文介绍了如何与Active Directory集成德尔福?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要验证在使用Delphi 7微软的Active Directory,什么是做到这一点的最好办法是用户?

We need to validate an user on Microsoft's Active Directory using Delphi 7, what is the best way to do that?

我们可以有两种情况:用户输入其网络用户名和密码,其中用户名可以包含域,我们在活动目录检查它是否是一个有效的用户。或者,我们得到的Windows当前登录的用户,并检查AD是否仍然有效。

We can have two scenarios: the user inputs its network username and password, where the username may include the domain, and we check on active directory if it is a valid, active user. Or we get the current logged user from Windows, and check on AD if it is still valid.

第一种方案需要用户验证,而第二个只是一个简单的广告搜索和定位。

The first scenario requires user validation, while the second one just a simple AD search and locate.

有谁知道,做一个或两个上述方案的组件或code的?

Does anyone know of components or code that do one or both of the scenarios described above?

推荐答案

我受宠若惊地看到我的ADSISearch组件这里提到:-),但为了简单地验证用户凭据,你可能甚至最好使用LogonUser的Win32 API的。我是pretty的确定(没有做任何德尔福工作了我自己),其有一个实现了漂浮的地方 - 大概在JVCL图书馆或其他地方

I'm flattered to see my ADSISearch component mentioned here :-), but in order to simply validate user credentials, you're probably even better off using the "LogonUser" Win32 API. I'm pretty sure (not doing any Delphi work anymore myself) that there's an implementation of that floating around somewhere - probably in the JVCL library or somewhere else.

这篇关于如何与Active Directory集成德尔福?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆