是否使用Xamarin.iOS进行Active Directory身份验证?

是否使用Xamarin.iOS进行Active Directory身份验证?,ios,authentication,xamarin,active-directory,ldap,Ios,Authentication,Xamarin,Active Directory,Ldap,是否可以通过Xamarin iOS应用程序连接到本地Active Directory(而不是Azure Active Directory)服务器并将其用于身份验证?如果是,怎么做? 我尝试使用PrincipalContext类和所描述的“ValidateCredentials”方法,但这给了我一个 System.NotSupportedException 如果还尝试使用所述的DirectoryEntry()类,但这也会返回 System.PlatformNotSupportedExceptio

是否可以通过Xamarin iOS应用程序连接到本地Active Directory(而不是Azure Active Directory)服务器并将其用于身份验证?如果是,怎么做? 我尝试使用PrincipalContext类和所描述的“ValidateCredentials”方法,但这给了我一个

System.NotSupportedException
如果还尝试使用所述的DirectoryEntry()类,但这也会返回

System.PlatformNotSupportedException: System.DirectoryServices is not supported on this platform

这些函数是特定于Windows平台的,因为它们使用非托管/Win本机库,因此在其他平台上以Mono为存根。有一些基于iOS(arm和x86)的OpenLDAP库(你需要编译FAT库/框架来支持iOS sim和物理设备,因为我目前还不知道有现成的LIB),google/bing是你最好的选择。IMHO,您最好在移动客户端上使用Microsoft Graph,而不是通过Azure AD Connect使用本地广告服务器作为权威的Azure广告。这些功能是特定于Windows平台的,因为它们使用非托管/Win本机库,因此在其他平台上以Mono为存根。有一些基于iOS(arm和x86)的OpenLDAP库(你需要编译FAT库/框架来支持iOS sim和物理设备,因为我目前还不知道有现成的LIB),google/bing是你最好的选择。IMHO,您最好在移动客户端上使用Microsoft Graph,而不是通过Azure AD Connect使用本地广告服务器作为权威的Azure广告。