gpt4 book ai didi

c# - LDIF 解析器 (C#)

转载 作者:太空狗 更新时间:2023-10-30 01:11:33 24 4
gpt4 key购买 nike

我正在寻找适用于 C# 的 LDIF 解析器。我正在尝试解析一个 LDIF 文件,以便我可以在添加对象之前检查它们是否存在。当使用 ntdsSchemaAdd 已经存在时添加它们会导致错误日志中出现一个条目。

最佳答案

快速网络搜索显示:http://wiki.github.com/skradel/Zetetic.Ldap/ .他们提供了一个 .net API。

来自页面:

Zetetic.Ldap is a .NET library for .NET 2 and above, which makes it easier to work with directory servers (like Active Directory, ADAM, Red Hat Directory Server, and others). Some of the key features of Zetetic.Ldap are:

1.LDIF file parsing and generation – Read and write the file format used for moving data around between directory systems

2.LDAP Entry-oriented API with change tracking – Create and modify directory objects in a more natural way

3.LDAP Schema interrogation – Quick programmatic access to the kinds of objects and fields your directory server understands. Learn if an attribute is a string, a number, a date, etc., without lots of manual research and re-parsing

4.LDIF Pivoter – Turn an LDIF file into a (comma or tab-delimited) flat file for analysis or loading into systems that don’t speak LDIF We built the Zetetic.Ldap library to make directory projects and programming faster and easier, and release it here in the hopes that others will find it useful too. As far as we know, this is the only .NET library that really understands the LDIF specification.

下载链接:http://github.com/downloads/skradel/Zetetic.Ldap/Zetetic.Ldap_20090831.zip

关于c# - LDIF 解析器 (C#),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2270334/

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