查询LDAP [英] Querying an LDAP

查看:172
本文介绍了查询LDAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前,所以我有点失去了我还没有与LDAP的工作。我需要连接到一个LDAP源找到一个特定的属性,并改变它。本方案的输入与用户的列表CSV文件。该计划应该读取CSV文件中的UID发现在LDAP记录并更换有一定的属性。我还没有线索如何做到这一点。可以在任何一个点我的方向是正确的吗?

I haven't worked with an LDAP before so I am a bit lost. I need to connect to an LDAP source find a specific attribute and change it. The input for the program is a CSV file with a list of users. The program is supposed to read the UID from the CSV file find the record in the LDAP and replace a certain attribute. I haven't a clue how to do this. Could any one point me in the right direction please?

推荐答案

响应第一个元素后,使用ADSI(老款)

First Element of response, using ADSI (old fashion)

<一个href=\"http://www.$c$cproject.com/Articles/18102/Howto-Almost-Everything-In-Active-Directory-via-C\">How用C# Active Directory上做几乎所有(使用ADSI)

How to do Almost everything (with ADSI) on Active Directory with C#

回应第二个元素,开始时.NET 3.5微软推出的主要的'和'的 AccountManagement 的'。

Second Element of response, begining .NET 3.5 Microsoft introduce 'Principal' and 'AccountManagement'.

<一个href=\"http://www.$c$cproject.com/Articles/90142/Everything-in-Active-Directory-via-Csharp-NET-3-5-.aspx\">How用C# Active Directory上做几乎所有(与AccountManagement)

How to do Almost everything (with AccountManagement) on Active Directory with C#

三元素响应,您可以用较低水平(本地LDAP)协议与的 System.DirectoryServices.Protocols(S.DS.P)

Third Element of response, you can use low level (native LDAP) protocol with System.DirectoryServices.Protocols (S.DS.P).

备注:如果你有兴趣在如何审问从本地code活动目录,你可以看下到LDAP C-绑定API在RFC 1823指定discribed,微软支持见 MS战略轻量级目录访问协议(LDAP)。你会发现使用和参考手册的微软API中的轻量级目录访问协议

Remark : If you are interested in how to interrogate active directory from native code, you may have a look to LDAP C-Binding API as discribed in RFC 1823 specifies, Microsoft support it, see MS Strategy for Lightweight Directory Access Protocol (LDAP). You'll find the using and reference manuals of the Microsoft API in Lightweight Directory Access Protocol.

这篇关于查询LDAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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