Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找如何使用 CPAN 的 Net::LDAP 更改 DN 或更确切地说是 RDN 的示例代码。重要提示:我不想直接对服务器进行此更改,而是生成一个 LDIF 文件!Net::LDAP 中只有 moddn 函数,LDIF 模块中没有。尽管如此,我在互联网上的某个地方读到,可以创建这样的 LDIF 文件。
可能我必须使用Net::LDAP::Entry 的 moddn函数,但我还没有找到将这种更改写入 LDIF 文件的方法。
先感谢您。
如果您正在寻找 LDIF 应该是什么样子的示例,请参阅:移动和重命名条目