C# 如何通过System.DirectoryServices访问Novell网络?

C# 如何通过System.DirectoryServices访问Novell网络?,c#,.net,directoryservices,novell,edirectory,C#,.net,Directoryservices,Novell,Edirectory,我正在通过访问ActiveDirectory public static DirectoryEntry GetRootDSE() { DirectoryEntry rootDSE = new DirectoryEntry("LDAP://rootDSE"); return rootDSE; } 现在我需要访问Novell网络 在这种情况下,我似乎只需要将“LDAP:”更改为“NDS:”,那么,它真的这么简单吗: public s

我正在通过访问ActiveDirectory

    public static DirectoryEntry GetRootDSE()
    {
        DirectoryEntry rootDSE = new DirectoryEntry("LDAP://rootDSE");

        return rootDSE;
    }
现在我需要访问Novell网络

在这种情况下,我似乎只需要将“LDAP:”更改为“NDS:”,那么,它真的这么简单吗:

    public static DirectoryEntry GetRootDSE()
    {
        // changed LDAP:// to NDS://
        DirectoryEntry rootDSE = new DirectoryEntry("NDS://rootDSE");

        return rootDSE;
    }
或者你必须记住其他一些事情吗

如果有人能为我的问题提供更多的信息,那就太好了


注意:首先,我使用的是.Net2.0,ldap://符号有点特定于广告,并且假设当前框是服务器,运行此过程的当前用户将是所使用的凭据


所以对于eDirectory,您可能需要ldap://serverIp:port (端口为389或636)。但不确定用户和密码参数是什么。

首先,ldap://符号有点特定于广告,并假设当前框是服务器,运行此进程的当前用户将是使用的凭据

所以对于eDirectory,您可能需要ldap://serverIp:port (端口为389或636)。但不确定用户和密码参数是什么