C# .net在连接到ldap服务器期间未实现异常

C# .net在连接到ldap服务器期间未实现异常,c#,active-directory,mono,ldap,C#,Active Directory,Mono,Ldap,我正在编写一个.NETWebAPI,需要使用LDAP连接到AD。我试图连接到在线ldap服务器ldap.forumsys.com,但它抛出NotImplementedException。 我正在使用System.DirectoryServices 这是我的密码 using (var entry = new DirectoryEntry("LDAP://ldap.forumsys.com/dc=example,dc=com", "uid=tesla,dc=e

我正在编写一个.NETWebAPI,需要使用LDAP连接到AD。我试图连接到在线ldap服务器ldap.forumsys.com,但它抛出NotImplementedException。 我正在使用
System.DirectoryServices

这是我的密码

        using (var entry = new DirectoryEntry("LDAP://ldap.forumsys.com/dc=example,dc=com",
            "uid=tesla,dc=example,dc=com", "password"))
        {
            var obj = entry.NativeObject;
        }

我正在使用MacBook和Mono,可能Mono中没有库,或者我没有包含一些东西

NativeObject
没有实现,因为它是一个COM接口,在macOS/Linux中不可用:@sushingover,有没有办法使用LDAP连接和验证macOS/Linux中的用户?